导入导出
This commit is contained in:
@@ -300,7 +300,7 @@ namespace DOAN.Service.BZFM
|
||||
var x = Context
|
||||
.Storageable(materialList)
|
||||
.SplitInsert(it => !it.Any())
|
||||
.WhereColumns(it => new { it.Id, it.MaterialCode }) //如果不是主键可以这样实现(多字段it=>new{it.x1,it.x2})
|
||||
.WhereColumns(it => it.Id) //如果不是主键可以这样实现(多字段it=>new{it.x1,it.x2})
|
||||
.ToStorage();
|
||||
var result = x.AsInsertable.ExecuteCommand(); //插入可插入部分;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user