Update Demo

This commit is contained in:
sunkaixuan 2019-05-03 09:25:38 +08:00
parent 5966a6634d
commit 45ddf36b46

View File

@ -57,7 +57,7 @@ namespace OrmTest.Demo
//Update Student set Name='jack' Where Id=1
//Column is null no update
db.Updateable(updateObj).Where(true).ExecuteCommand();
db.Updateable(updateObj).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommand();
db.Updateable(new Student[] { new Student() { Id = 2, Name = "a2" }, new Student() { Id = 1, Name = "a1" } }).ExecuteCommand();