Entity Framework介绍

简介: Entity Framework The Entity Framework is a set of technologies in ADO.NET that helps fill in the space between object-oriented development (objects) and databases.

Entity Framework

The Entity Framework is a set of technologies in ADO.NET that helps fill in the space between object-oriented development (objects) and databases. This gap is commonly known as an “impedance mismatch” and it exists because the mapping and organization of classes does not quite match up to the organization of relational objects. Many mapping solutions have tried to solve this problem by mapping OO (object-oriented) classes and properties straight to tables and columns. 

常见的已有类似产品

•  NHibernate: Ported from Hibernate Core for Java for the .NET Framework, NHibernate for .NET persists plain .NET objects to and from an underlying relational database.

•  SPRINT.net: An open-source application framework, and based on the Java version of Spring Framework, allowing you to build components that can be integrated into multiple tiers of your application.

如何入手

EF是基于Linq,因此Linq要熟悉

对SQL server的基本使用要了解

 

两本看过的推荐图书:

Entity Framework 4.0 Recipes A Problem-Solution Approach

Pro Entity Framework 4.0

 

 

熟悉这些以后,就可以基本按照面向对象的方法处理数据层的对象和各种关系了,对于一些快速开发的中小项目可以完全的支持。

 

Entity FrameWorkd Tip on blog.msdn

http://blogs.msdn.com/b/alexj/archive/tags/tips/

http://www.cnblogs.com/xray2005/category/189491.html

 

最近在使用这个框架,感觉vs2010对这个功能增强的很多,特别是IDE的支持功能更强,显著提高开发效率,吸收了广泛的意见,结合看的书,把一些重点着几天整理记录一下以备参考。

 

相关文章
|
XML 存储 数据库连接
Entity Framework学习笔记——edmx文件
上文简单介绍了一下Entity FrameWork,这里说一下EF的核心——edmx文件。 在VisualStudio中建立edmx文件(此例环境为VisualStudio2012)
Entity Framework学习笔记——edmx文件
|
存储 开发框架 .NET
Entity Framework基础01
Entity Framework基础01
178 0
Entity Framework基础01
|
数据库
Entity Framework Core介绍(1)
介绍 Entity Framework (EF) Core 是轻量化、可扩展和跨平台版的常用 Entity Framework 数据访问技术。 EF Core 可用作对象关系映射程序 (O/RM),以便于 .NET 开发人员能够使用 .NET 对象来处理数据库,这样就不必经常编写大部分数据访问代码了。
960 0
|
SQL 数据库
Entity Framework 小知识(二)
Entity Framework 小知识(二)
148 0
|
数据库
Entity Framework 小知识(五)
Entity Framework 小知识(五)
119 0
|
索引
Entity Framework 小知识(四)
Entity Framework 小知识(四)
116 0
|
数据库 数据库管理
Entity Framework 小知识(一)
Entity Framework 小知识(一)
107 0
|
数据库
Entity Framework 小知识(三)
Entity Framework 小知识(三)
129 0
|
数据库 容器
Entity Framework Core(3)-配置DbContext
设计时 DbContext 配置 EF Core 设计时工具如迁移需要能够发现和创建的工作实例DbContext以收集有关应用程序的实体类型以及它们如何映射到数据库架构的详细信息的类型。 此过程可以为自动,只要该工具可以轻松地创建DbContext,会将其配置同样到它如何将配置在运行时的方式。
910 0