The Repository Pattern and the O/R Mapper
summary
Examines whether pairing an ORM (like Entity Framework or NHibernate) with the Repository pattern—often implemented as generic repositories to hide the ORM from higher layers—is actually useful. Uses practical examples comparing common MSDN-style implementations to evaluate if keeping upper layers intentionally simple provides flexibility and whether the Repository pattern is justified.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:45Manual data mapping problems
- 6:00Design patterns
- 13:58Repository pattern overrated
- 21:30Repository misuse consequences
- 32:37Historical reasons
- 39:25ORM vs repository
- 47:32Query objects alternative
- 54:01When to use repository
- 1:01:26Business logic and ORM
- 1:10:30Portable business logic
- 1:13:41Conclusion and Q&A
