Update db.Storageable

This commit is contained in:
skx
2021-01-28 21:29:47 +08:00
parent 85015aa56f
commit 50728c26dc
4 changed files with 33 additions and 18 deletions

View File

@@ -65,8 +65,8 @@ namespace OrmTest
list2.First().Name = null;
db.DbMaintenance.TruncateTable<UinitBlukTable>();
var x=Db.Storageable(list2)
.SplitInsert(it => !string.IsNullOrEmpty(it.Item.Name))
.SplitUpdate(it => string.IsNullOrEmpty(it.Item.Name))
//.SplitInsert(it => !string.IsNullOrEmpty(it.Item.Name))
//.SplitUpdate(it => string.IsNullOrEmpty(it.Item.Name))
.SplitDelete(it=>it.Item.Id>10)
.SplitIgnore(it=>it.Item.Id==2)
.SplitError(it => it.Item.Id == 3,"id不能等于3")