mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update Demo
This commit is contained in:
@@ -82,6 +82,17 @@ namespace OrmTest.Demo
|
||||
dt.Add("name", null);
|
||||
dt.Add("createTime", DateTime.Now);
|
||||
var t66 = db.Updateable(dt).AS("student").WhereColumns("id").With(SqlWith.UpdLock).ExecuteCommand();
|
||||
|
||||
|
||||
|
||||
var dt2 = new Dictionary<string, object>();
|
||||
dt2.Add("id", 2);
|
||||
dt2.Add("name", null);
|
||||
dt2.Add("createTime", DateTime.Now);
|
||||
var dtList = new List<Dictionary<string, object>>();
|
||||
dtList.Add(dt);
|
||||
dtList.Add(dt2);
|
||||
var t666 = db.Updateable(dtList).AS("student").WhereColumns("id").With(SqlWith.UpdLock).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user