Update mongodb bug

This commit is contained in:
sunkaixuan 2025-08-04 19:33:30 +08:00
parent 9e30f80f56
commit 6f95a155ee

View File

@ -116,6 +116,13 @@ namespace SqlSugar.MongoDb
rightValue = ObjectId.Parse(str);
}
}
else
{
if (rightValue!=null&&rightValue.IsString&&UtilMethods.IsValidObjectId(rightValue.AsString))
{
rightValue = ObjectId.Parse(rightValue.AsString);
}
}
return rightValue;
}
}