- 增加 [Table(AsTable = xx)] 分表特性,完成分表插入/删除;

This commit is contained in:
2881099
2022-04-08 21:19:51 +08:00
parent 8c022b3e0a
commit f73c02d8d1
28 changed files with 1413 additions and 744 deletions

View File

@ -393,6 +393,7 @@ namespace FreeSql.Internal
if (trytb.VersionColumn.Attribute.MapType.IsNullableType() || trytb.VersionColumn.Attribute.MapType.IsNumberType() == false && trytb.VersionColumn.Attribute.MapType != typeof(byte[]))
throw new Exception($"属性{trytb.VersionColumn.CsName} 被标注为行锁(乐观锁)(IsVersion),但其必须为数字类型 或者 byte[],并且不可为 Nullable");
}
tbattr?.ParseAsTable(trytb);
var indexesDict = new Dictionary<string, IndexInfo>(StringComparer.CurrentCultureIgnoreCase);
//从数据库查找主键、自增、索引