ExcludeFieldsList ignored when using PrefetchPath

Posts   
 
    
ww
User
Posts: 83
Joined: 01-Oct-2004
# Posted on: 22-Mar-2012 19:52:53   

I'm using LLBLGen framework, runtime version 3.1.11.415, Adapter model.

I'm using an ExcludeFieldsList when doing fetches to suppress some fields. This is working fine if I fetch the affected entities directly, but when the entities are fetched by a prefetch, it looks like the fields are getting fetched.

Example: my ExcludeFieldsList excludes some fields in EntityB. If I fetch EntityBs directly, the exclusion works. If I fetch some EntityAs, though, and the related EntityBs are fetched due to the prefetch path, then the fields are not excluded in the EntityBs.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Mar-2012 21:11:46   

ww wrote:

I'm using LLBLGen framework, runtime version 3.1.11.415, Adapter model.

The RTL is quite old. Please update it to the latest v3.1 version.

ww wrote:

I'm using an ExcludeFieldsList when doing fetches to suppress some fields. This is working fine if I fetch the affected entities directly, but when the entities are fetched by a prefetch, it looks like the fields are getting fetched.

Please show us the problematic piece of code, when you setup the prefetch, the ExcludeList and when you fetch the collection.

David Elizondo | LLBLGen Support Team
ww
User
Posts: 83
Joined: 01-Oct-2004
# Posted on: 26-Mar-2012 15:51:40   

Updated to 3.5 and it seems to be OK.