Entity Framework介绍

本文深入解析了EntityFramework作为ADO.NET技术的一部分,如何帮助解决面向对象开发与数据库之间的映射和组织不匹配的问题。通过介绍NHibernate和SPRINT.net等已有解决方案,并强调熟悉LINQ和SQL Server基本使用的重要性。推荐了两本关于EntityFramework的图书,旨在通过面向对象的方法处理数据层的对象和关系,支持快速开发中小项目。

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的支持功能更强,显著提高开发效率,吸收了广泛的意见,结合看的书,把一些重点着几天整理记录一下以备参考。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值