Update Bug

This commit is contained in:
sunkaixuan
2017-05-25 01:38:50 +08:00
parent f652bc3ddc
commit 7a4e4ce891
3 changed files with 7 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ namespace OrmTest.Demo
//Where
var t10= db.Updateable<Student>()
.UpdateColumns(it => new Student() { Name = "jack", SchoolId =1 })
.UpdateColumns(it => new Student() { CreateTime=DateTime.Now })
.Where(it => it.Id == 11).ExecuteCommand();
}
public static SqlSugarClient GetInstance()