From 90d65fcef94210ae905b8c74f70d912e91d90275 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Sun, 16 Jan 2022 15:35:11 +0800 Subject: [PATCH] Update demo --- Src/Asp.Net/SqliteTest/UnitTest/UBulkCopy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqliteTest/UnitTest/UBulkCopy.cs b/Src/Asp.Net/SqliteTest/UnitTest/UBulkCopy.cs index 93c5f7640..36316a114 100644 --- a/Src/Asp.Net/SqliteTest/UnitTest/UBulkCopy.cs +++ b/Src/Asp.Net/SqliteTest/UnitTest/UBulkCopy.cs @@ -13,10 +13,10 @@ namespace OrmTest { var db = NewUnitTest.Db; db.DbMaintenance.CreateDatabase(); - db.DbMaintenance.TruncateTable(); db.Aop.OnLogExecuting = null; db.CodeFirst.InitTables(); var list = new List(); + db.DbMaintenance.TruncateTable(); for (int i = 0; i < 100000; i++) { list.Add(new UBulkCopydsafad1() { name = "a", name1 = "x" + i, name2 = "a" }); @@ -26,7 +26,7 @@ namespace OrmTest var list2 = db.Queryable().ToList(); db.Fastest().BulkCopy(list); var list3 = db.Queryable().ToList(); - var updateRows= db.Fastest().BulkUpdate(list3); + var row= db.Fastest().BulkUpdate(list3); //db.CommitTran(); } public class UBulkCopydsafad1