entity-framework-plus

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


Solution

  • 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.