- 增加 ISelect ToDelete/ToUpdate 方法,实现更复杂的删除/更新操作;

This commit is contained in:
28810
2019-10-30 20:35:42 +08:00
parent db7fe82403
commit 21b4b0d5d3
21 changed files with 1594 additions and 9 deletions

View File

@ -297,7 +297,11 @@ namespace FreeSql.Internal
foreach (var col in trytb.Primarys)
col.Attribute.IsPrimary = true;
}
foreach (var col in trytb.Primarys) col.Attribute.IsNullable = false;
foreach (var col in trytb.Primarys)
{
col.Attribute.IsNullable = false;
col.Attribute.DbType = col.Attribute.DbType.Replace("NOT NULL", "");
}
tbc.AddOrUpdate(entity, trytb, (oldkey, oldval) => trytb);
#region virtual