mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
db.Fastest support BulkCopyUpdate
This commit is contained in:
@@ -99,7 +99,8 @@ namespace OrmTest
|
||||
|
||||
//Where Sql
|
||||
//db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
|
||||
|
||||
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 ####");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user