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