Entity Framework Tutorial--ef Architecture

Source: Internet
Author: User

EF Architecture

is a panorama of the EF architecture, giving us a separate look at the usefulness of each component.

EDM (Entity Data Model):

The EDM consists of 3 main parts, the concept module (conceptual model), the mapping (Mapping), and the storage module (Storage model).

Conceptual Model:

The conceptual model contains model classes and their relationships, which are not affected by the database design.

Storage Model:

The storage model represents the design of the database, including tables, views, stored procedures, inter-table relationships, and primary foreign keys.

Mapping:

Mapping refers to some of the information that transforms a conceptual model into a storage model.

LINQ to Entities:

LINQ to Entities is the query language for the entity that is used to write the query object model. It can be used to return the conceptual model that you define. There are some LINQ-related techniques used here.

Entity SQL:

Entity SQL is another query language like LINQ to Entities, however, it is a little bit more difficult than LINQ to entities, and developers need to learn differently.

Object Service:

The Object service accesses the primary portal of the database and returns the data that is accessed. It is primarily responsible for specific things, such as getting data from the entity client data provider (its next layer) and converting it to a solid object.

Entity Client Data Provider:

The primary responsibility of this layer is to translate queries provided by LINQ to Entities or entity SQL into specific databases to understand the queries that are executed. It uses the ADO data provider to communicate with the database.

ADO Data Provider:

This layer uses the standard ADO to communicate with the database.

Entity Framework Tutorial--ef 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.