Update Demo

This commit is contained in:
610262374@qq.com
2018-12-07 16:33:28 +08:00
parent 26548f60f9
commit f95b9bd1f6

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();
//sql
db.Updateable(updateObj).Where("id=@x",new { x="1"}).ExecuteCommand();