-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use navigations in model level entity filters #8881
Comments
I just want to plug the referenced issue (#9539) that @smitpatel closed as duplicate of this. It expands on the filter-by-tenant use case that is outlined in the ef core / what's new documentation. Any chance this might make it for 2.1? |
@pauldalyii Thanks for the feedback and the detailed example in #9539--this gives us good information on one concrete way people would use this. Unfortunately, I don't think this will fit in the 2.1 time frame. |
@ajcvickers, thanks for letting me know. With some guidance, I'd be happy to try to implement this/get a rough PoC working. It seems like It'd be a cool feature. |
@anpete Can you give @pauldalyii some guidance here? |
One of the biggest blocker for this is nav expansion and filter application dependency. We expand navigations before applying filters so that we have entityQueryables for all the the ETs before applying filter (so that we can apply for all ETs appropriately). But having a navigation in filter means we need to expand navs after applying filter which can cause more filters to applied and that goes on (forever ). We may need a way to integrate this inside nav expansion. |
I just started tackling my EF-Core code's
|
After further thought, I see how to work with both limitations in place. At the top of every class hierarchy within my domain model, alongside I can then use
Does this look like a reasonable way to use the API? It does throw an exception, since the |
For my last
The work around I described above won't work here, since involved objects exist in the database but not local memory. Please increase this issue's priority. 🙏 |
did this ever get implemented? |
@chumtoadafuq It shipped with EF Core 2.1. |
No description provided.
The text was updated successfully, but these errors were encountered: