mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Update Demo
This commit is contained in:
parent
5966a6634d
commit
45ddf36b46
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user