C# 轻量级系统基础架构 (MVP MEF + EF6)
0 综述 1 MVP各模块规范 1.1 实体模块规范 1.1.1 命名规范 1.1.2 架构规范 1 namespace TestProj.DataEntity 2 { 3 public interface ITestProjEntity<T> : IEquatable<T> 4 where T : ITestProjEntity<T> 5 { 6 } 7 } public class Patient : IOpenTCMEntity<Patient> { public string ID { get; set; } //主键ID public string Name { get; set; } //姓名 public bool Equals(Patient other) { if (other == null) { return false; } if (other == this) { return true; } bool res = other.ID == ID && other.Name == Name; return res; } } 1.2 数据库访问接口 1.2.1 命名规范 1.2.2 架构规范 1 public interface IBaseDAO<E> 2 where E : IOpenTCMEntity<E> 3 { 4 /// <summary> 5 //