EF Core
Getting started with EF Core
Getting started with EF Core
  • Introduction
    • What is an ORM
    • Entity Framework Core
    • EF Core architecture
    • EF Core Approaches
  • Basics of EF Core
    • Create the project
      • Create the model & context
    • Create migration
    • CRUD using EF
      • Creating many entities
      • Update & Delete
    • Adding a property
      • Add migration
  • Entity Relationships
    • Add related entity
      • Add Vehicle
      • Modify Student
      • Modify context
      • Add migration
    • Manipulate related data
  • Entity Configuration
    • Fluent APIs
      • Frequently used APIs
    • Data Annotations
      • Frequently used annotations
Powered by GitBook
On this page
  1. Introduction

EF Core architecture

PreviousEntity Framework CoreNextEF Core Approaches

Last updated 2 years ago

EF Core architecture

The following diagram depicts the architecture behind EF Core.

EF Core Architecture.

The DbContext is a special class that represents a unit of work and provides methods to configure options, connection strings, logging, and the model used to map your domain to the database.

Classes deriving from DbContext:

  • Represent an active session with the database.

  • Save and query instances of entities.

  • Include properties of type DbSet<T> representing tables in the database.

The EF Core Provider translates object graph changes to SQL.

The Database Provider:

  • Is a plug-in library designed for a specific database engine, such as SQL Server, Azure Cosmos DB, or PostgreSQL.

  • Translates method calls and LINQ queries to the database's native SQL dialect.

  • Extends EF Core to enable functionality that's unique to the database engine.