Skip to content
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

behavioral option to auto include / load navigation properties, like owned entities behavior. #19301

Closed
mhDuke opened this issue Dec 13, 2019 · 1 comment

Comments

@mhDuke
Copy link

mhDuke commented Dec 13, 2019

Say we have Trip and Ticket types. Business logic requires Trip.Tickets to always be included when querying Trip. Conveniently designed collection of Ticket to be owned by Trip. Now, another entity requires reference to Ticket, which means use HasMany() instead of OwnsMany(), in turn lose the auto load for Trip.Tickets, going through code refactor to add .Include(). Adding logic to Trip to not initialize Tickets by default, so it throws and help me with forgotten .Include().

it's not dramatic as i am trying to convey here, but it could be. and it's nice thing to have optional setting to auto include navigation properties.

@smitpatel
Copy link
Contributor

Duplicate of #2953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants