Database: Oracle 10g
LLBLGen Pro: v2.5
.NET Framework: 2.0
Ihave a prefetch path2 like this
IPrefetchPath2 prefetchPath = new PrefetchPath2((int)EntityType.CustomerEntity);
prefetchPath.Add(CustomerEntity.PrefetchPathProduct)
.SubPath.Add(Product.PrefetchPathProduct, 0,ProductArticles.PredicateExpression, filterDeb.Relations)
.SubPath.Add(ProductArticlesEntity.PrefetchPathArticlesPrice, 0, filterArticlePrice.PredicateExpression)
.SubPath.Add(ArticlePrice.PrefetchPathKand);
prefetchPath.Add(CustomerEntity.PrefetchPathAddress);
prefetchPath.Add(CustomerEntity.PrefetchPathContactPerson);
Then we fetch this data with the following code
if (criteria.MaxRecords.HasValue)
db.FetchEntityCollection(Customers, filter, MaxRecords, null, prefetchPath);
When we set the Maxrecords to 50,he generates a parameter list and executes everything correct, but when we set the value to 100 the system generated additional queries to retrieve the Id's without any limitation.
Query: SELECT "CUSTOMER"."ID" AS "Id" FROM "CUSTOMER" WHERE ( ( ( UPPER(TRIM("CUSTOMER"."CUSTOMER_TYPE")) = UPPER(TRIM(:LOfb52893a1)))))
Parameter: :LOfb52893a1 : String. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: "EXT".
Does anybody knows the reason of this strange behavoir.