Is there any means of setting the QueryableEntityCollectionView to a subset of data using a linq query or some other means?
For example the following code will include all recurds in tbUser
I only want active users to be included based on a flag. It's preferable if the user is blind to this filter in that the column on the grid doesn't show that it's been filtered.
I see that there is another constructer that uses ObjectQuery but I can't get my head around how this works and I can't seem to find any examples.
Any help is appreciated.
For example the following code will include all recurds in tbUser
New
QueryableEntityCollectionView(Of DataModelEF.tbUser)(DbContext,
"tbUsers"
)
I only want active users to be included based on a flag. It's preferable if the user is blind to this filter in that the column on the grid doesn't show that it's been filtered.
I see that there is another constructer that uses ObjectQuery but I can't get my head around how this works and I can't seem to find any examples.
Any help is appreciated.