mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
Update mongodb
This commit is contained in:
@@ -100,7 +100,11 @@ namespace SqlSugar.MongoDb
|
||||
{
|
||||
if (entityColumnInfo?.IsPrimarykey==true||entityColumnInfo?.DataType==nameof(ObjectId))
|
||||
{
|
||||
rightValue=ObjectId.Parse(rightValue?.ToString());
|
||||
var str = rightValue?.ToString();
|
||||
if (UtilMethods.IsValidObjectId(str))
|
||||
{
|
||||
rightValue = ObjectId.Parse(str);
|
||||
}
|
||||
}
|
||||
return rightValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user