The following image shows the architecture of the Entity Framework.
Let's now look at the components of the architecture individually.
EDM (Entity Data Model): Entity Data Model that is EDM consists of three main parts - Conceptual model, Mapping and Storage model.
Conceptual Model: The conceptual model contains the model classes and their relationships which is independent from our database table design.
Storage Model: The storage model is the database design model which mainly includes tables, views, stored procedures, and their relationships and keys.
Mapping: Mapping consists of all information about how the conceptual model is mapped into the storage model.
LINQ to Entities: LINQ-to-Entities (L2E) is defined as a query language which is used to write queries against the object model. It returns entities, that are defined in the conceptual model. We can use our LINQ skills here also.
Entity SQL: Entity SQL is an another query language for EF 6 only just like LINQ to Entities. However, it is a little more difficult than L2E and we that is developer will have to learn it separately.
Object Service: Object service is the main entry point for accessing data from the database and returning it to back. Object service is also responsible for materialization, which is the process for converting data returned from an entity client data provider (next layer) to an entity object structure.
Entity Client Data Provider: The main responsibility for this layer is to convert LINQ-to-Entities or Entity SQL queries into a SQL query which is easily understood by the underlying database. It is used to communicate with the ADO.Net data provider which in turn sends or retrieves data from the database.
ADO.Net Data Provider: This layer also communicates with the database using standard ADO.Net.
Liked By
Write Answer
Describe architecture for entity framework?
Join MindStick Community
You have need login or register for voting of answers or question.
Nishi Tiwari
29-Jan-2020Entity Framework Architecture
The following image shows the architecture of the Entity Framework.
Let's now look at the components of the architecture individually.
EDM (Entity Data Model): Entity Data Model that is EDM consists of three main parts - Conceptual model, Mapping and Storage model.
Conceptual Model: The conceptual model contains the model classes and their relationships which is independent from our database table design.
Storage Model: The storage model is the database design model which mainly includes tables, views, stored procedures, and their relationships and keys.
Mapping: Mapping consists of all information about how the conceptual model is mapped into the storage model.
LINQ to Entities: LINQ-to-Entities (L2E) is defined as a query language which is used to write queries against the object model. It returns entities, that are defined in the conceptual model. We can use our LINQ skills here also.
Entity SQL: Entity SQL is an another query language for EF 6 only just like LINQ to Entities. However, it is a little more difficult than L2E and we that is developer will have to learn it separately.
Object Service: Object service is the main entry point for accessing data from the database and returning it to back. Object service is also responsible for materialization, which is the process for converting data returned from an entity client data provider (next layer) to an entity object structure.
Entity Client Data Provider: The main responsibility for this layer is to convert LINQ-to-Entities or Entity SQL queries into a SQL query which is easily understood by the underlying database. It is used to communicate with the ADO.Net data provider which in turn sends or retrieves data from the database.
ADO.Net Data Provider: This layer also communicates with the database using standard ADO.Net.