using System; namespace CSFramework.DB { /// /// ORM模型对应关系类。用于定义提交数据依赖的对象模型、主键与非更新字段定义。 /// public class DbDataUpdateORM { /// /// 构造器 /// /// 表结构对应的ORM模型 /// 主键字段数组 /// 自增字段(或不支持更新的字段)数组 public DbDataUpdateORM(Type type, string[] pks, string[] ignoreFields) { PKs = pks; IgnoreFields = ignoreFields; ObjectType = type; } /// /// 对象模型ORM Type /// public Type ObjectType { get; set; } /// /// 主键字段数组 /// public string[] PKs { get; set; } /// /// 自增字段(或不能更新的字段)数组 /// public string[] IgnoreFields { get; set; } } }