MongoDb实体更新 返回
SqlSugar
沟通中
1
476
悬赏:0 飞吻
使用SqlSugarClient.Updateable(entity).ExecuteCommand(); 或者 ExecuteCommandWithOptLockAsync
Log记录 BulkWrite mkt_admission_lead [ ]
数据没有更新
使用SqlSugarClient.Updateable<T>().SetColumns(it => it.EntityId == "xx" ......).Where(x => x.Id == "......").ExecuteCommand();
Log记录 BulkWrite mkt_admission_lead [ { filter: { "$and" : [{ "_id" : { "$oid" : "......" } }] } , update: { $set: { "entityId" : "xx"...... } } } ]
数据正确更新
数据模型确认没有问题,可以正常查询访问。
请问是不是针对MongoDb,还不支持Updateable(entity)这种写法
热忱回答(1)
-
fate sta VIP0
2025/11/27ExecuteCommandWithOptLockAsync 不支持。目 前
0 回复