Is it possible to create a querry lazy loading using a DbContext
that is doing Eager Loading? Is there any way I can specify that
Company company = db.Comanies.Find(id);
Does not this command have to bring the entities related to it?
Is it possible to create a querry lazy loading using a DbContext
that is doing Eager Loading? Is there any way I can specify that
Company company = db.Comanies.Find(id);
Does not this command have to bring the entities related to it?
To disable on query
specify do so:
db.Configuration.LazyLoadingEnabled = false;
Company company = db.Comanies.Find(id);