Update mongodb

This commit is contained in:
sunkaixuan
2025-05-08 20:36:10 +08:00
parent 2467211036
commit 5d0996d8ad
3 changed files with 60 additions and 11 deletions

View File

@@ -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() })