You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Say we have
Trip
andTicket
types. Business logic requiresTrip.Tickets
to always be included when queryingTrip
. Conveniently designed collection ofTicket
to be owned byTrip
. Now, another entity requires reference toTicket
, which means useHasMany()
instead ofOwnsMany()
, in turn lose the auto load forTrip.Tickets
, going through code refactor to add.Include()
. Adding logic toTrip
to not initializeTickets
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.
The text was updated successfully, but these errors were encountered: