# Misleading DataFilter demo

**URL:** <https://forum.radzen.com/t/misleading-datafilter-demo/17962>\
**Category:** Site Feedback\
**Created:** [July 28, 2024, 2:09pm UTC](https://forum.radzen.com/t/misleading-datafilter-demo/17962 "2024-07-28T14:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Farsi](https://forum.radzen.com/user_avatar/forum.radzen.com/nick_farsi/32/18813_2.png) [@Nick\_Farsi](https://forum.radzen.com/u/Nick_Farsi)\
**Post date:** [July 28, 2024, 2:09pm UTC](https://forum.radzen.com/t/misleading-datafilter-demo/17962/1 "2024-07-28T14:09:57Z")

</div>

# 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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [July 28, 2024, 5:07pm UTC](https://forum.radzen.com/t/misleading-datafilter-demo/17962/2 "2024-07-28T17:07:51Z")

</div>

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

 ![image](https://forum.radzen.com/uploads/default/original/3X/2/2/22bc12d1d9a5b3a51808034e48829e8721bb2c17.png)

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.
