mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
Update demo
This commit is contained in:
@@ -21,6 +21,14 @@ namespace OrmTest
|
||||
})
|
||||
.Where(it=>it.id==1)
|
||||
.ExecuteCommand();
|
||||
|
||||
db.Updateable<UnitADFA>()
|
||||
.SetColumns(it => new UnitADFA()
|
||||
{
|
||||
a = it.id > 1
|
||||
})
|
||||
.Where(it => it.id == 1)
|
||||
.ExecuteCommand();
|
||||
}
|
||||
public class UnitADFA
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user