Closed Xavier-Mobius closed 1 year ago
Hello @Xavier-Mobius ,
Unfortunately, this is part of our limitations for EF Core: https://entityframework-plus.net/ef-core-query-filter#limitations
We succeeded in making it work in EF6 as the Query Filter
was working differently, but we were not able to use the same technique for EF Core.
Best Regards,
Jon
Oh, I understand.
I think you should write it more explicitly in the limitations section of your documentation. "Include" is, in my opinion, different from "subqueries". Do you have any plans in your roadmap to work around this limitation soon?
Thank you
Hello @Xavier-Mobius ,
Unfortunately, no, I don't think it will ever happen. Since EF Core already have their own global filter query, I doubt we will pass more time on this feature to try to improve it.
Best Regards,
Jon
That's sad to hear because, with such a limitation, I don't see how I can use this library for filters. :(
It seemed so promising. This limitation aside, your library offers much more advanced and convenient global filter management than the framework's native one.
Anyway, thanks for your time, have a good day.
Hello, and thanks for this tool :)
The Query Filter function does not apply to JOIN (or subqueries), whereas the basic Entity Core function does. This is very inconvenient in most cases (for example, for Multi-Tenancy or Soft-Delete, it is necessary for the filter to apply to all tables, not just the main table).
Example:
The returned SQL is :
If I make the same query using the native query filters from the framework :
The result is quite different:
Complete example file : https://dotnetfiddle.net/GDNRkE (You can easily see the difference between expected and observed behavior by commenting/uncommenting the first line:
#define Z_ENTITYFRAMEWORK_PLUS
).Thank you for your time