Third, the project structure explained

This article I will explain the structure of the sponge project list. Before explaining the structure of the project, I have to look at ORM framework used in the project. ORM framework used in this project is Entity Framework. Microsoft's ADO.NET Entity Framework is being developed based on the corresponding object-relational solutions. Once the frame, but then separated from version 6 .NET Framework part of the .NET Framework. Entity Framework 6 mainly comprises the following:

  1. EDM (Entity Data Model): the EDM comprises three main parts - a conceptual model, model mapping and storing:
  • Conceptual model (entity): conceptual model includes the relationships between classes and their models. It will be independent of the database table design.
  • Storage model (data): model storage model database design, including tables, views, stored procedures, and the relationship between them and the key.
  • Mapping (mapping): how to map the conceptual model is mapped to the information store model components.
  1. LINQ To Entity (L2E): L2E entity object is a query language, it returns the entity defined in the conceptual model.
  2. Entity SQL: Entity SQL is a query language similar L2E. However, it is more complex than L2E.
  3. Object Services (Object Services): Object services are data access the database and return the main entry point data. It is responsible for instantiating data, converts Entity Client Data Provider (lower level) data into the entity object.
  4. Entity Client Data Provider: The main responsibility is to convert L2E or Entity Sql to Sql database query can be identified, it sends data to the database or request by ADO.Net Data Provider.
  5. ADO.Net Data Provider: using standard Ado.net communicate with the database.

Zero, project structure

By the previous talk, you probably have a simple Entity Framework to understand, our readers need to know them so far. In this latter column, I will use to

Guess you like

Origin blog.csdn.net/gangzhucoll/article/details/103939803