var users=dbContext. Users. Include (" Orders "). The where (u=& gt; User. Id==1);this Repository layer encapsulates the unable to gain access to dbContext how even after table? Another user. The Id==1 it's don't understand if you do not specify a value, how
Also an example of this is to construct modelbuilder, also didn't think of how to do
CodePudding user response:
Using linqCodePudding user response:
Through the interface or attributes you DbContext or DbSet exposed not good,CodePudding user response:
Users. The Include (" Orders ")This is not the list?
You can also through linq
From a in dbContext. Users
Join in dbContext b. Order on,,,,,,,,,,,,,,,,,
List effect,