Update mysql bulkcopy bug

This commit is contained in:
sunkaixuna
2021-10-20 19:13:09 +08:00
parent bf5c570271
commit ba6ef6f2f1
2 changed files with 12 additions and 4 deletions

View File

@@ -58,6 +58,14 @@ namespace OrmTest
Name = "11",
Price = 11
}).UseMySql().ExecuteBulkCopy();
db.Insertable(new OrderItem()
{
CreateTime = DateTime.Now,
ItemId=1,
OrderId=1,
OrderName="a",
Price = 11
}).UseMySql().ExecuteBulkCopy();
var data = db.Queryable<Order>().ToList();
Console.WriteLine("#### Insertable End ####");
}