mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update DorisTest
This commit is contained in:
parent
3b089de9b5
commit
07869e421e
@ -14,14 +14,19 @@ namespace OrmTest
|
||||
|
||||
db.CodeFirst.InitTables<LogEntity>();
|
||||
|
||||
db.DbMaintenance.TruncateTable<Student112>();//truncate data
|
||||
|
||||
db.CodeFirst.InitTables<Student112>();//drop colum
|
||||
db.CodeFirst.InitTables<Student11>();//add column
|
||||
db.DbMaintenance.TruncateTable<Student112>();//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<Student11>().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();
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.168-preview01</version>
|
||||
<version>5.1.4.168-preview03</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user