Update Demo

This commit is contained in:
sunkaixuan
2018-04-08 15:23:13 +08:00
parent edc8a60c40
commit 20156140c0

View File

@@ -69,6 +69,11 @@ namespace OrmTest.Demo
//update one columns
var count2 = db.Updateable<Student>().UpdateColumns(it => it.SchoolId == it.SchoolId+1).Where(it => it.Id == it.Id + 1).ExecuteCommand();
var dt = new Dictionary<string, object>();
dt.Add("id", 1);
dt.Add("name", "1");
var t66 = db.Updateable(dt).AS("student").With(SqlWith.UpdLock).ExecuteCommand();
}
}
}