Entity Framework Tutorial Basics (3): Entity Framework Architecture

Source: Internet
Author: User

Entity Framework Architecture

The following figure shows the overall architecture of the Entity Framework. Let us now look at the architecture individually:

EDM (Entity Data Model): EDM consists of three main parts-conceptual model, Mapping and Storage model.

Conceptual Model: The conceptual model contains the model classes and their relationships. This is independent from your database table design.

Storage Model: Storage model is the database design model which includes tables, views, stored procedures, and their relationships and Ke Ys.

Mapping: Mapping consists of information about how the conceptual model was mapped to the storage model.

LINQ to Entities: LINQ to Entities are a query language used to write queries against the object model. It returns entities, which is defined in the conceptual model. You can use your LINQ skills here.

Entity SQL: Entity SQL is another query language just like LINQ to entities. However, it's a little more difficult than l2e and the developer would has to learn it separately.

Object Service: Object Service is a main entry point for accessing data from the database and to return it back. Object Service is responsible for materialization, which are the process of converting data returned from an entity client Data provider (next layer) to an entity object structure.

Entity Client Data Provider: The main responsibility of this layer are to convert L2E or Entity SQL queries into a SQL query which are understood by the Underlying database. It communicates with the ADO data provider which in turn sends or retrieves data from the database.

ADO Data Provider: The this layer communicates and the database using standard ADO.

Entity Framework Tutorial Basics (3): Entity Framework Architecture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.