Go to my github
摘要: LCLFramework框架之数据门户职责 形成统一的数据访问方式。 LCLFramework框架之数据门户设计 数据门户分为客户端/服务端。 LCLFramework框架之数据门户职责 LCLFramework框架之数据门户设计 LCLFramework框架之数据门户设计代码 数据门户交互实现: 阅读全文
posted @ 2016-09-02 10:37 峡谷少爷 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 技术实现: 代码是否面向对象,要看你的继承怎么用 用抽象来展现层次感 用接口来制定操作的统一性 依赖住入(Inversion of Control) Unit of Work Repository Domain Model Service Layer Transaction Script Model 阅读全文
posted @ 2016-09-02 10:37 峡谷少爷 阅读(347) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/libingql/p/3353112.html protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove< 阅读全文
posted @ 2016-09-02 10:35 峡谷少爷 阅读(6856) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 解决办法: http://www.cnblogs.com/scy251147/p/3688844.html 原理: Attaching an entity of type '' failed because another entity of the same type already 阅读全文
posted @ 2016-09-02 10:33 峡谷少爷 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 问题描述: The type DbConnection cannot be constructed. You must configure the container to supply this value. 用户代码未处理 Microsoft.Practices.Unity.Resolution 阅读全文
posted @ 2016-09-02 10:33 峡谷少爷 阅读(848) 评论(0) 推荐(0) 编辑
摘要: Entity编写 1:所有的实体类都必须继承DomainEntity 2:所有的表都必须有 ID 3:所有表的关系字段必须是ID [Serializable] public class User: DomainEntity { //public string Name { set; get; } } 阅读全文
posted @ 2016-09-02 10:32 峡谷少爷 阅读(302) 评论(0) 推荐(0) 编辑