Misleading DataFilter demo

DataFilter

Filter Entity Framework IQueryable without extra code.

The demo states that it showcases using filter over an IQueryable , however in the code we can observe that an entire IQueryable is materialized in memory on initialization:

orders = dbContext.Orders.Include("OrderDetails.Product").Include("Customer").Include("Employee").ToList()

So eventually we observe filter operations over an in-memory IEnumerable, not over an IQueryable. At that a real IQueryable that showcases dynamic filtering over a child collection would have been very helpful.

The demo adds additional not mapped property and that's why ToList() is called:

Keep in mind that so called LINQ to Objects (EnumerableQuery) is also IQueryable implementation, it's not only EF. If you have doubts if EF is supported you can monitor requests using SQL Server Profiler.