Almost every real application needs to store data in a database. Writing SQL by hand for every operation is slow and error prone, so most C# developers use Entity Framework Core (EF Core), which lets you work with database tables as ordinary C# classes.
This module starts with what an ORM is, then walks through the DbContext, entity classes, and code-first migrations that create and update your database. It finishes with relationships between tables, such as one-to-many and many-to-many.
Watch the lessons in order, then continue on to Testing & Deployment.
Introduces Entity Framework as an object relational mapper (ORM) that helps you build databases quickly, covering the core basics.
Builds a first EF Core setup from scratch: configuring the DbContext, creating an entity class, and connecting to SQL Server.
A step-by-step look at the code-first approach inside an ASP.NET Core Web API application, with migrations and SQL Server.
Shows how to implement the three kinds of database relationships using Entity Framework Core 8.