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