Hello,
I have to a complex filtering construct in my application that i have to execute on the database. I create an ipredicate and get all data through FetchEntityCollection.
The data must be display in a devexpress grid view which is responsible for the ordering, paging and grouping.
As I have more than 100000 data lines, and only display 20, I would like to perform the paging, ordering and grouping on the Database through SQL.
FetchEntityCollection returned all elements. I have also tried the LLBLGenProDataSource2 but the when I look on the request generated, all data are returned from data.
Devexpress grid view supports linq expression and then all paging, ordering and grouping are executed on the database server.
Is there a way to filter a DataSource2<Entity> with an ipredicate, so that with this filtered datasource the linq ordering, paging and grouping is performed on the database server and that only the needed entities are returned ?
Thanks for your help,
Martin