Entity Framework Core

For our database operations we are going to use the Entity Framework, Microsoft's Object Relational Mapper (ORM). The Entity Framework (EF) has a .NET Core version and PostgreSQL has an EF Core Provider. I could write a book on EF alone, but for now, it suffices to know there are basically three ways of working with EF: database first, code first, or a mix of the two. The database first approach assumes you have a database already in place and generates, or lets you manually write, classes based on that. In code, first you basically describe your database in code, after which EF generates the scripts necessary to (automatically) update your database to the latest schema. The third approach assumes you already have a ...

Get Continuous Integration, Delivery, and Deployment now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.