db.Fastest support BulkCopyUpdate

This commit is contained in:
sunkaixuna
2022-01-05 12:17:01 +08:00
parent 73181b1ac0
commit 0034f2703a
4 changed files with 50 additions and 4 deletions

View File

@@ -109,8 +109,8 @@ namespace OrmTest
.AddQueue();
db.SaveQueues();
db.Fastest<Order>().BulkCopy(updateObjs);
var dataTable = db.Queryable<Order>().Select("id,name,1 as price").Take(2).ToDataTable();
db.Fastest<Order>().BulkUpdate("Order", dataTable,new string[] {"id" },new string[] {"name" });
Console.WriteLine("#### Updateable End ####");
}