测试 sqlserver mysql 的批量处理
This commit is contained in:
1 parent
7fa788d47e
commit
778f3e04f6
7 files changed
+75
-39
No files matched your search
@@ -1,4 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using AutoMapper;
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
@@ -30,6 +32,15 @@ namespace HHWMS.Web
|
||||
[HttpPost]
|
||||
public IActionResult RequestIn(WcsRequest request)
|
||||
{
|
||||
var inv = new List<Inventory>();
|
||||
for (int i = 0; i < 10; i++)
|
||||
inv.Add(new Inventory
|
||||
{
|
||||
ContainerCode = "test" + i
|
||||
});
|
||||
//_unitwork.BatchAdd<Inventory>(inv);
|
||||
_unitwork.DeleteById<Inventory>(1441);
|
||||
//_unitwork.BatchUpdate<Inventory>(x => x.ID > 1030, x=>new Inventory { Batch = "test"});
|
||||
return ApiResult();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user