Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity Framework Plus - Using IncludeFilter and Include

I read the documentation and I see that the limitation when using IncludeFilter is that I can't combine it with EF Include. Has anyone came into this situation where they used IncludeFilter but needed to load a navigation property that originally would have been handled by EF Include? What's the best way to load the additional navigation property?

https://entityframework-plus.net/query-include-filter

like image 229
Yim Yean Avatar asked Jan 25 '26 08:01

Yim Yean


1 Answers

It's currently impossible to combine IncludeFilter and Include. That's a limitation of our library.

However, you can use IncludeFilter without a filter. So to make it work, you just need to replace ALL include by IncludeFilter no matter if there is a filter or not.

like image 68
Jonathan Magnan Avatar answered Jan 29 '26 11:01

Jonathan Magnan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!