Update Demo

This commit is contained in:
sunkaixuan
2018-12-08 18:54:17 +08:00
parent 4374989475
commit 368f79c315

View File

@@ -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();
}
}
}