Entity Framework Core
Microsoft's object-relational mapper for .NET, which lets code query and save database data as C# objects and translates LINQ into SQL.
In more detail
A DbContext tracks entities and sends commands; migrations evolve the schema from code. Async methods such as ToListAsync and SaveChangesAsync run the database work.
Related terms
- ORM — A library that lets code read and write database rows as ordinary objects, generating the SQL for you.
- DbContext — The EF Core class that represents a session with the database: it tracks entities, translates queries and saves changes as one unit of work.
- database migration — A scripted, versioned change to a database's structure, such as adding a table or a constraint.
- change tracking — EF Core keeping a snapshot of entities it loaded so that SaveChanges can detect which properties changed and send updates for them.
- IQueryable<T> — The .NET interface for a query that a provider such as EF Core translates and runs elsewhere, typically as SQL in a database.
Taught in
- Classes, Interfaces, and Object-Oriented C# — Modern .NET Core, C# & Enterprise Microservices
- Collections, Generics, and LINQ — Modern .NET Core, C# & Enterprise Microservices
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices
- Entity Framework Core: Code First and Migrations — Modern .NET Core, C# & Enterprise Microservices
- Querying, Change Tracking, and Saving Data — Modern .NET Core, C# & Enterprise Microservices
- The Repository Pattern — Modern .NET Core, C# & Enterprise Microservices
- Unit Testing with xUnit and NSubstitute — Modern .NET Core, C# & Enterprise Microservices