mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Update mongodb
This commit is contained in:
@@ -40,8 +40,8 @@ namespace MongoDbTest
|
||||
|
||||
|
||||
var updateRow3= db.Updateable<OrderInfo>()
|
||||
.SetColumns(it=>it.Name=="aa")
|
||||
.Where(it=>it.Id==ids.Last())
|
||||
.SetColumns(it=>it.Name=="xx")
|
||||
.Where(it=> it.Id == ids.Last())
|
||||
.ExecuteCommand();
|
||||
|
||||
var delrow = db.Deleteable(new OrderInfo() { Id = ids.Last() })
|
||||
|
Reference in New Issue
Block a user