<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_leeolevis_分类_Entity Framework</title><id>http://feed.cnblogs.com/blog/u/51427/category/315258/rss</id><updated>2012-06-03T19:43:39Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/category/315258.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/51427/category/315258/rss"/><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/03/03/1969668.html</id><title type="text">ADO.NET Entity Framework之ESQL</title><summary type="text">目录 1esql的查询结果集 ObjectQuery1 1.1ObjectQuery&lt;实体&gt;1 1.2ObjectQuery&lt;DbDataRecord&gt;1 1.3ObjectQuery&lt;简单类型&gt;1 2esql的使用2 2.1it关键字2 2.2value 关键字2 2.3查询参数的使用3 2.4中文字段3 3得到esql与sql字串3 3.1CommandText属性4 3.2ToTraceString方法4 4ObjectQuery的Linq方法4 4.1Where4 4.2OrderBy4 4.3Select4 4.4SelectValue(proje</summary><published>2011-03-03T02:52:00Z</published><updated>2011-03-03T02:52:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/03/03/1969668.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/03/03/1969668.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968411.html</id><title type="text">ADO.NET Entity Framework之ObjectQuery</title><summary type="text">目录 1ObjectQuery&lt;T&gt;数据加载方式1 1.1访问方式1 1.2Context.CreateQuery&lt;T&gt;()1 1.3ObjectQuery&lt;DbDataRecord&gt;2 1.4ObjectQuery&lt;简单类型&gt;3 2Execute方法与ObjectResult3 2.1Execute方法3 2.2ObjectResult&lt;T&gt; 结果集4 3类型转换4 3.1OfType(TResultType)4 4Linq方法5 4.1All5 4.2Any5 4.3Take5 4.4Skip5 4.5First6 4.6Firs</summary><published>2011-03-01T14:14:00Z</published><updated>2011-03-01T14:14:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968411.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968411.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968409.html</id><title type="text">ADO.NET Entity Framework之ObjectContext</title><summary type="text">目录 1说明1 2Context操作数据1 2.1AddObject 添加实体1 2.2DeleteObject 删除实体1 2.3Detach 分离实体2 2.4修改实体2 2.5ApplyPropertyChanges 修改实体2 2.6Attach / AttachTo 附加实体2 2.7CreateEntityKey 创建EntityKey3 2.7.1EntityKey3 2.8GetObjectByKey/TryGetObjectByKey 通过EntityKey得到实体3 2.9CreateQuery 创建查询4 3状态管理4 3.1EntityState 状态枚举4 3.2Co</summary><published>2011-03-01T14:12:00Z</published><updated>2011-03-01T14:12:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968409.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968409.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/07/09/1774491.html</id><title type="text">EneityFramework+DomainDataSource+Silverlight完成数据读取分页排序与修改</title><summary type="text">关于EF、SL、DomainDataSource的说明园子上够多了，这儿就不多说了。 1.安装VS2010与Silverlight 4 Tools…… 2.打开VS2010,新键Silverlight项目,如图一所示:图1.新键项目 注:请选中"启用WCF RIA服务"的CheckBox. 建立好项目后,解决方案里的文件如图2所示:图2.解决方案文件结构 3.在SilverlightApplication.Web里,添加Entity Framework的数据库映射文件,这儿我以自己数据库的一个表所为示例,如图3与图3所示:图3.新建"Ado.Net实体数据模型&amp;q</summary><published>2010-07-09T08:53:00Z</published><updated>2010-07-09T08:53:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/07/09/1774491.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/07/09/1774491.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/03/25/1694575.html</id><title type="text">Entity Framework 学习--Entity SQL</title><summary type="text">Entity SQL 是 ADO.NET 实体框架 提供的 SQL 类语言，用于支持 实体数据模型 (EDM)。Entity SQL 可用于对象查询和使用 EntityClient 提供程序执行的查询。l 关键字Value关键字ESQL 提供了 SELECT VALUE 子句以跳过隐式行构造。SELECT VALUE 子句中只能指定一项。在使用这样的子句时，将不会对 SELECT 子句中的项构造行包装器，并且可生成所要形状的集合，例如：SELECT VALUE it FROM NorthwindEntities.Customers as itit关键字 it 出现在 ESQL 中, 查询对象的</summary><published>2010-03-25T01:12:00Z</published><updated>2010-03-25T01:12:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/03/25/1694575.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/03/25/1694575.html"/><content type="text">Entity SQL 是 ADO.NET 实体框架 提供的 SQL 类语言，用于支持 实体数据模型 (EDM)。Entity SQL 可用于对象查询和使用 EntityClient 提供程序执行的查询。l 关键字Value关键字ESQL 提供了 SELECT VALUE 子句以跳过隐式行构造。SELECT VALUE 子句中只能指定一项。在使用这样的子句时，将不会对 SELECT 子句中的项构造行包装器，并且可生成所要形状的集合，例如：SELECT VALUE it FROM NorthwindEntities.Customers as itit关键字 it 出现在 ESQL 中, 查询对象的</content></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/03/16/1687280.html</id><title type="text">Entity Framework 教程</title><summary type="text">本文档主要介绍.NET开发中两项新技术，.NET平台语言中的语言集成查询技术 - LINQ，与ADO.NET中新增的数据访问层设计技术ADO.NET Entity Framework。ADO.NET的LINQ to Entity部分以LINQ为基础，为了完整性本文档首先介绍LINQ技术。 预备知识 LINQ技术 LINQ是.NET 3.5中新增的一种技术，这个技术扩展了.NET平台上的编程语言，使其可以更加方便的进行数据查询，单纯的LINQ技术主要完成对集合对象（如System.Collection下或System.Collection.Generic命名空间下的对象）的查询。结合LINQ P</summary><published>2010-03-16T07:37:00Z</published><updated>2010-03-16T07:37:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/03/16/1687280.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/03/16/1687280.html"/><content type="text">本文档主要介绍.NET开发中两项新技术，.NET平台语言中的语言集成查询技术 - LINQ，与ADO.NET中新增的数据访问层设计技术ADO.NET Entity Framework。ADO.NET的LINQ to Entity部分以LINQ为基础，为了完整性本文档首先介绍LINQ技术。 预备知识 LINQ技术 LINQ是.NET 3.5中新增的一种技术，这个技术扩展了.NET平台上的编程语言，使其可以更加方便的进行数据查询，单纯的LINQ技术主要完成对集合对象（如System.Collection下或System.Collection.Generic命名空间下的对象）的查询。结合LINQ P</content></entry></feed>
