Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks for your answer. Usually I have a Common project with the business logic, which has an internal DbContext and uses repositories to abstract a way a bit of EF. It's just friendlier for the developers to work with, and it removes a lot of repetitive code. When I don't use a repository and have a pretty advanced query, I don't want developers to copy the Where clause. But instead nesting it in some (reusable) method inside of a repository Commented Oct 10, 2021 at 17:51
  • i agree, i would just not use EF in that repo Commented Oct 11, 2021 at 9:51