mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update mongodb
This commit is contained in:
@@ -98,7 +98,7 @@ namespace SqlSugar.MongoDb
|
||||
|
||||
private BsonValue GetRightValue(EntityColumnInfo entityColumnInfo, BsonValue rightValue)
|
||||
{
|
||||
if (entityColumnInfo?.IsPrimarykey==true)
|
||||
if (entityColumnInfo?.IsPrimarykey==true||entityColumnInfo?.DataType==nameof(ObjectId))
|
||||
{
|
||||
rightValue=ObjectId.Parse(rightValue?.ToString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user