Forum:  LLBLGen Pro Runtime Framework

Thread:  ExcludeIncludeFieldsList in FetchTypedView


Rosacek (User)   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 (Support Team)   Posted on: 24-Jun-2015 18:40:52.
DynamicLists should be used in this case.

Otis (LLBLGen Pro Team)   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.