mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Update Demo
This commit is contained in:
@@ -57,7 +57,7 @@ namespace OrmTest.Demo
|
|||||||
//Update Student set Name='jack' Where Id=1
|
//Update Student set Name='jack' Where Id=1
|
||||||
|
|
||||||
//Column is null no update
|
//Column is null no update
|
||||||
db.Updateable(updateObj).Where(true).ExecuteCommand();
|
db.Updateable(updateObj).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommand();
|
||||||
|
|
||||||
//sql
|
//sql
|
||||||
db.Updateable(updateObj).Where("id=@x",new { x="1"}).ExecuteCommand();
|
db.Updateable(updateObj).Where("id=@x",new { x="1"}).ExecuteCommand();
|
||||||
|
Reference in New Issue
Block a user