当前位置:主页   - 电脑 - 网站开发 - ASP.Net
Entity Framework 架构简介
来源:网络   作者:   更新时间:2012-03-28
收藏此页】    【字号    】    【打印】    【关闭

  The Entity Framework looks like a interesting technology which is more powerful and advanced than LINQ to SQL. Both technologies have a different kind of philosophy but several features have similar implementations. The EF is more than just an ORM (Object Relational Mapping) tool. It allows developers to query and manipulate data using a conceptual model instead of a physical storage model.

  The ADO.NET Entity Framework is a layered framework which abstracts the relational schema of a database and presents a conceptual model.

Entity Framework 架构简介

  Data Source : The bottom layer is the data which can be stored in one or many databases.

  Data Providers : The data will be accessed by a ADO.NET data provider. At this moment only SQL Server is supported but in the near future there will be data providers for Oracle, MySQL, DB2, Firebird, Sybase, VistaDB, SQLite, ...

  Entity Data Model (EDM) : The Entity Data Model consists of 3 parts :

  Conceptual schema definition language (CSDL) : Declare and define entities, associations, inheritance, ... Entity classes are generated from this schema.

  Store schema definition language (SSDL) : Metadata describing the storage container (=database) that persists data.

  Mapping specification language (MSL) : Maps the entities in the CSDL file to tables described in the SSDL file.

  Entity Client : EntityClient is an ADO.NET managed provider that supports accessing data described in an Entity Data Model. It is similar to SQLClient, OracleClient and others. It provides several components like EntityCommand, EntityConnection and EntityTransaction.

  Object Services : This component enables you to query, insert, update, and delete data, expressed as strongly-typed CLR objects that are instances of entity types. Object Services supports both Entity SQL and LINQ to Entities queries.

  Entity SQL (ESQL) : Entity SQL is a derivative of Transact-SQL, designed to query and manipulate entities defined in the Entity Data Model. It supports inheritance and associations. Both Object Services components and Entity Client components can execute Entity SQL statements.

  LINQ to Entities : This is a strong-typed query language for querying against entities defined in the Entity Data Model.

  下图是来自微软MSDN的中文图片资料,表示了ADO.NET Entity Framework 体系结构:

Entity Framework 架构简介

  Source URL:

  http://www.scip.be/index.php?Page=ArticlesNET12

其它资源
来源声明

版权与免责声明
1、本站所发布的文章仅供技术交流参考,本站不主张将其做为决策的依据,浏览者可自愿选择采信与否,本站不对因采信这些信息所产生的任何问题负责。
2、本站部分文章来源于网络,其版权为原权利人所有。由于来源之故,有的文章未能获得作者姓名,署“未知”或“佚名”。对于这些文章,有知悉作者姓名的请告知本站,以便及时署名。如果作者要求删除,我们将予以删除。除此之外本站不再承担其它责任。
3、本站部分文章来源于本站原创,本站拥有所有权利。
4、如对本站发布的信息有异议,请联系我们,经本站确认后,将在三个工作日内做出修改或删除处理。
请参阅权责声明