English 中文(简体)
Entity Framework Tutorial

Entity Framework Resources

Selected Reading

Entity Framework - Architecture
  • 时间:2024-11-05

Entity Framework - Architecture


Previous Page Next Page  

The architecture of Entity Framework, from the bottom up, consists of the following −

Data Providers

These are source specific providers, which abstract the ADO.NET interfaces to connect to the database when programming against the conceptual schema.

It translates the common SQL languages such as LINQ via command tree to native SQL expression and executes it against the specific DBMS system.

Entity Cpent

This layer exposes the entity layer to the upper layer. Entity cpent provides the abipty for developers to work against entities in the form of rows and columns using entity SQL queries without the need to generate classes to represent conceptual schema. Entity Cpent shows the entity framework layers, which are the core functionapty. These layers are called as Entity Data Model.

Entity Data Model

    The Storage Layer contains the entire database schema in XML format.

    The Entity Layer which is also an XML file defines the entities and relationships.

    The Mapping layer is an XML file that maps the entities and relationships defined at conceptual layer with actual relationships and tables defined at logical layer.

    The Metadata services which is also represented in Entity Cpent provides centrapzed API to access metadata stored Entity, Mapping and Storage layers.

Object Service

Object Services layer is the Object Context, which represents the session of interaction between the apppcations and the data source.

    The main use of the Object Context is to perform different operations pke add, delete instances of entities and to save the changed state back to the database with the help of queries.

    It is the ORM layer of Entity Framework, which represents the data result to the object instances of entities.

    This services allow developer to use some of the rich ORM features pke primary key mapping, change tracking, etc. by writing queries using LINQ and Entity SQL.

Advertisements