Chapter 1. Improving Entity Framework in the Real World
In this chapter, we will cover the following topics:
- Improving Entity Framework by using a code-first approach
- Unit testing and mocking
- Creating databases from code
- Creating mock database connections
- Implementing the repository pattern
- Implementing the unit of work pattern
Introduction
If we were to buy the materials to build a house, would we buy the bare minimum to get four walls up and a roof, without a kitchen or a bathroom? Or would we buy enough material to build the house with multiple bedrooms, a kitchen, and multiple bathrooms?
The problem lies in how we define the bare minimum. The progression of software development has made us realize that there are ways of building software that do not ...
Get Entity Framework Core Cookbook - Second Edition 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.