Entity Framework Core (EF Core) is the official ORM (Object-Relational Mapper) for .NET. It maps C# classes to database tables, allowing you to query and modify data using LINQ instead of raw SQL. Code-First vs Database-First The Code-First approach defines your database schema using C# classes (entities). EF Core generates SQL migrations to create and update tables. The Database-First approach reverse-engineers existing databases into C# classes. DbContext DbContext is the primary class for database interaction. It manages entity tracking, change detection, and database connections. DbSet<T> properties represent tables. LINQ queries on DbSet are translated into efficient SQL at runtime.