Browse Source

Update Demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
368f79c315
  1. 11
      Src/Asp.Net/SqlServerTest/Demos/2_Update.cs

11
Src/Asp.Net/SqlServerTest/Demos/2_Update.cs

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

Loading…
Cancel
Save