Entity Framework Core APIs
Explore the core APIs and functionalities of Entity Framework Core, Microsoft's modern object-relational mapper (ORM) for .NET.
Core Concepts
Entity Framework Core (EF Core) allows developers to work with databases using .NET objects, eliminating the need for most of the data-access code that developers traditionally need to write.
Key API Categories
DbContext
The central class in EF Core, representing a session with the database and allowing you to query and save data.
DbContext
class.
DbSet<TEntity>
representing a collection of objects for the given entity type.
DbSet<TEntity>
Represents a collection of all entities in the context, or that can be queried from the database, of a given type.
IQueryable<TEntity>
representing the entity set.
EntityState
for a given entity.
Model Building
Configure your entity models and relationships using the OnModelCreating
method.
Migrations
Manage database schema changes over time.
For more detailed information and examples, please refer to the official Entity Framework Core documentation.