diff --git a/Src/Asp.NetCore2/DuckDBTest/1_CodeFirst.cs b/Src/Asp.NetCore2/DuckDBTest/1_CodeFirst.cs index 0c068a594..acb778fc3 100644 --- a/Src/Asp.NetCore2/DuckDBTest/1_CodeFirst.cs +++ b/Src/Asp.NetCore2/DuckDBTest/1_CodeFirst.cs @@ -63,6 +63,20 @@ namespace OrmTest //Delete //删除 db.Deleteable(userInfo).ExecuteCommand(); + + //Test the performance of creating SQL + for (int i = 0; i < 10000; i++) + { + db.Insertable(new UserInfo001() + { + Context = "Context", + Email = "dfafa@qq.com", + Price = Convert.ToDecimal(1.1), + UserName = "admin", + RegistrationDate = DateTime.Now, + + }).ToSql(); + } } /// diff --git a/Src/Asp.NetCore2/TDengineTest/Demo/ORMTest_Partial/Type.cs b/Src/Asp.NetCore2/TDengineTest/Demo/ORMTest_Partial/Type.cs index 7d3dabbb5..a3be227fc 100644 --- a/Src/Asp.NetCore2/TDengineTest/Demo/ORMTest_Partial/Type.cs +++ b/Src/Asp.NetCore2/TDengineTest/Demo/ORMTest_Partial/Type.cs @@ -180,6 +180,23 @@ CACHEMODEL 'both'");//不支持 UPDATE 1 选项 }).AS("fc_data01").ExecuteCommand(); var list2 = db.Queryable().AS("fc_data01").ToList(); + + //Test the performance of creating SQL + for (int i = 0; i < 10000; i++) + { + db.Insertable(new fc_data() + { + data_id = 1, + gateway_mac = "mac", + rssi = 11, + ruminate = 1, + speed_hex = "x", + temperature = 1, + upload_time = DateTime.Now, + voltage = 1 + + }).ToSql(); + } } } }