© Brian L. Gorman 2020
B. L. GormanPractical Entity Frameworkhttps://doi.org/10.1007/978-1-4842-6044-9_11

11. Repository and Unit of Work Patterns

Brian L. Gorman1 
(1)
Jesup, IA, USA
 

In this chapter, we are going to talk in detail about two critical patterns that exist and that should be on the radar of every database developer, whether we are using Entity Framework or not. The good news is that EF actually handles a lot of the unit of work (UoW) and repository (repo) work for us. The bad news is that EF is sometimes not exactly what we need when implementing our solutions.

To learn more about these patterns and how we can work with them, we’ll start this chapter by discussing each pattern and why they are important, and then we’ll finish the chapter ...

Get Practical Entity Framework: Database Access for Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.