mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update Mongodb
This commit is contained in:
parent
8420268e61
commit
ffc1a9e07a
@ -153,6 +153,7 @@ namespace SqlSugar.MongoDb
|
||||
if (bson.Contains("fieldName"))
|
||||
{
|
||||
var field = bson["fieldName"].AsString;
|
||||
operations[operations.Count - 1] = operations[operations.Count - 1].Replace($"\"${field}\"", $"\"$_id.{field}\"");
|
||||
fieldNames.Add(field);
|
||||
}
|
||||
// 构造 _id 部分:支持多字段形式
|
||||
|
Loading…
Reference in New Issue
Block a user