Mid SOLID

What are potential drawbacks of Repository pattern?

  • Over-abstraction: Can add unnecessary complexity for simple apps.
  • Duplication: May duplicate what EF Core already provides (since EF is already a

repository/unit-of-work pattern).

  • Hides EF Core features: May obscure advanced capabilities like eager loading or

projections.

  • Extra boilerplate: Especially with generic repositories, which may not add much

value.

Unit of Work

More from Design Patterns in C#

All questions for this course