mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-20 00:44:19 +08:00
Update mongodb bug
This commit is contained in:
parent
9e30f80f56
commit
6f95a155ee
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user