<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_老莫的帐本子_分类_Entity Framework</title><id>http://feed.cnblogs.com/blog/u/27825/category/265179/rss</id><updated>2012-06-05T03:34:13Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/moye/category/265179.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/27825/category/265179/rss"/><entry><id>http://www.cnblogs.com/moye/archive/2010/10/16/EntityFramework4_Poco2.html</id><title type="text">Entity Framework 4 Poco开发之旅 part 2</title><summary type="text">对于习惯Model和Data分层分离的朋友，鄙人提供这两个模板可供选用：Entity Framework 4 Model &amp; DataContext T4 Template Download当然，模板只是个范例，还需视情况进行调整，比如您项目的相对位置，命名空间有所不同，或者您觉得序列化模型不是必须的。</summary><published>2010-10-16T09:01:00Z</published><updated>2010-10-16T09:01:00Z</updated><author><name>莫耶</name><uri>http://www.cnblogs.com/moye/</uri></author><link rel="alternate" href="http://www.cnblogs.com/moye/archive/2010/10/16/EntityFramework4_Poco2.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/moye/archive/2010/10/16/EntityFramework4_Poco2.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/moye/archive/2010/10/14/EntityFramework4_poco.html</id><title type="text">Entity Framework 4 Poco开发之旅 part 1</title><summary type="text">EF4会为每一个数据库连接生成一个数据容器，和一个数据关系映射XML文件（.edmx）。数据容器继承自System.Data.Objects.ObjectContext，它拥有对连接和数据集（数据集ObjectSet对应数据库中的表）的描述，并以此为我们提供CRUD访问功能。数据关系映射文件.edmx的结构设计颇为讲究，分为SSDL（存储模型简单直接介质层）、CSDL（概念模型简单直接介质层）、C-S mapping（存储-概念映射关系 ）三大块。日常的维护更新表关系通过对.edmx的操作进行，在.edmx里的结构发生变化后，可调用T4模板，重新生成数据容器，以及与之关联的Poco对象群。</summary><published>2010-10-14T14:02:00Z</published><updated>2010-10-14T14:02:00Z</updated><author><name>莫耶</name><uri>http://www.cnblogs.com/moye/</uri></author><link rel="alternate" href="http://www.cnblogs.com/moye/archive/2010/10/14/EntityFramework4_poco.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/moye/archive/2010/10/14/EntityFramework4_poco.html"/><content type="html"/></entry></feed>
