ExcludeIncludeFieldsList in FetchTypedView

Posts   
 
    
Rosacek
User
Posts: 155
Joined: 18-Mar-2012
# Posted on: 24-Jun-2015 15:41:52   

Is there a simple way to limit fields returned by FetchTypedView?

I guess ExcludeIncludeFieldsList works just for EntityCollection. It looks I have only 1 option: map view as Entity and then use ExcludeIncludeFieldsList. Correct?

I wonder why ExcludeIncludeFieldsList is not implemented yet in TypedViews and TypedLists

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 24-Jun-2015 18:40:52   

DynamicLists should be used in this case.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 26-Jun-2015 09:55:28   

Rosacek wrote:

Is there a simple way to limit fields returned by FetchTypedView?

I guess ExcludeIncludeFieldsList works just for EntityCollection. It looks I have only 1 option: map view as Entity and then use ExcludeIncludeFieldsList. Correct?

I wonder why ExcludeIncludeFieldsList is not implemented yet in TypedViews and TypedLists

THey're not implemented because the types are meant to be used as-is, they're designed to be readonly sets so why they should be limited after that is a little odd if you design them to be sets in the first place.

If you need a subset of the fields in a typedview, use a linq/queryspec query to create a custom projection.

Frans Bouma | Lead developer LLBLGen Pro