How to find related enties using EntityFramework?
My problem is we are using N-Tier architecture with Generic Repository and Unit of Work , the DbContext is only available in UOW and is not accessible in business layer, so how without DbContext i can get all related entities?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted Nov 6, 2020, 3:00 AM EST
Aarti GuptaRank #5,944 · 281 reputationPosted Nov 6, 2020, 3:29 AM EST