摘要:
技术实现: 代码是否面向对象,要看你的继承怎么用 用抽象来展现层次感 用接口来制定操作的统一性 依赖住入(Inversion of Control) Unit of Work Repository Domain Model Service Layer Transaction Script Model 阅读全文
摘要:
http://www.cnblogs.com/libingql/p/3353112.html protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove< 阅读全文
摘要:
问题描述: 解决办法: http://www.cnblogs.com/scy251147/p/3688844.html 原理: Attaching an entity of type '' failed because another entity of the same type already 阅读全文
摘要:
问题描述: The type DbConnection cannot be constructed. You must configure the container to supply this value. 用户代码未处理 Microsoft.Practices.Unity.Resolution 阅读全文
摘要:
Entity编写 1:所有的实体类都必须继承DomainEntity 2:所有的表都必须有 ID 3:所有表的关系字段必须是ID [Serializable] public class User: DomainEntity { //public string Name { set; get; } } 阅读全文