-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add GetAllIncluding method to repositories #422
Comments
Only problem with multiple include is, NHibernate does not support it. It's supported only by Entity Framework. If you think that you will not change EF, then reference EF from your application (and optionlly from core) layer and use Repository.GetAll().Include(...); |
I'll consider it after v1.0. Thanks. |
Halil, I don't know nothing about nhibernate, but I think is possible to encapsulating Query Logic with the Query Object pattern and use include without reference EF on app/core. |
I things you can add implementation of Include in repositories.
For all "Select" functions , we can add an expression parameter to specify includes.
ex:
Usage:
RepositoryAdresse.GetAll( a=> a.User, a=> a.Object1 ) return à list of Adress with User & Object1 entity
The text was updated successfully, but these errors were encountered: