diff --git a/Src/Asp.NetCore2/DorisTest/Program.cs b/Src/Asp.NetCore2/DorisTest/Program.cs index 733d87ebd..414d13833 100644 --- a/Src/Asp.NetCore2/DorisTest/Program.cs +++ b/Src/Asp.NetCore2/DorisTest/Program.cs @@ -14,14 +14,19 @@ namespace OrmTest db.CodeFirst.InitTables(); - db.DbMaintenance.TruncateTable();//truncate data + db.CodeFirst.InitTables();//drop colum db.CodeFirst.InitTables();//add column + db.DbMaintenance.TruncateTable();//truncate data db.Insertable(new Student11() { Id = 1, Age = 1, Name = "a",DateTime=DateTime.Now }) .ExecuteCommand(); + + db.Insertable(new Student11() { Id = 2, Age = 1, Name = "a", DateTime = DateTime.Now }) + .ExecuteCommand(); var list=db.Queryable().ToList(); - //var rows = db.Updateable(list.First()).ExecuteCommand(); + var rows1 = db.Updateable(list.FirstOrDefault()).ExecuteCommand(); + //var rows2 = db.Updateable(list).ExecuteCommand(); db.Deleteable(list).ExecuteCommand(); } } diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec index 05e7499d8..059aa10e4 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec @@ -2,7 +2,7 @@ SqlSugarCore - 5.1.4.168-preview01 + 5.1.4.168-preview03 sunkaixuan 果糖大数据科技 http://www.apache.org/licenses/LICENSE-2.0.html