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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access