Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
afa236da5a
  1. 6
      OrmTest/Demo/Update.cs

6
OrmTest/Demo/Update.cs

@ -45,9 +45,9 @@ namespace OrmTest.Demo
//Where By Expression
var t9 = db.Updateable(updateObj).Where(it => it.Id == 1).ExecuteCommand();
//Where
var t10= db.Updateable<Student>()
.UpdateColumns(it => new Student() { CreateTime=DateTime.Now })
//Update By Expression Where By Expression
var t10 = db.Updateable<Student>()
.UpdateColumns(it => new Student() { Name="a",CreateTime=DateTime.Now })
.Where(it => it.Id == 11).ExecuteCommand();
}
public static SqlSugarClient GetInstance()

Loading…
Cancel
Save