maxNumberOfItemsToReturn clarification

Posts   
 
    
rracer99
User
Posts: 58
Joined: 11-Mar-2007
# Posted on: 09-Dec-2007 07:52:26   

Hello,

I thought maxNumberOfItemsToReturn would only limit the # of root entitties matched when fetching a collection. However it also limited the number of returned entities for a related table, which I did not think it would do.

For example:

People Role PeopleRoleRel

Then I have something like:

prefetchPath.Add(PeopleEntity.PrefetchPathRoleFromPeopleRoleRel);

So then:

adapter.FetchCollection(peopleCollection, bucket, 1, prefetchPath);

This will return 1 "people" but also only 1 Role, even if the person has relations with multiple Roles.

I assumed maxNumberOfItems would only limit the count of the root entity and not the prefetch path entities. Is this the way it is supposed to behave?

Thanks.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Dec-2007 20:39:49   

rracer99 wrote:

I assumed maxNumberOfItems would only limit the count of the root entity and not the prefetch path entities. Is this the way it is supposed to behave?

Yes, you assumed correctly.

Could you please post your relevant code to see what's wrong. Also, What LLBLGen version and runtime libraries version are you using? (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7722)

David Elizondo | LLBLGen Support Team