mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +08:00
Update mongodb
This commit is contained in:
@@ -43,6 +43,10 @@ namespace SqlSugar.MongoDb
|
||||
}
|
||||
else
|
||||
{
|
||||
if (column.IsPrimarykey&& value!=null)
|
||||
{
|
||||
value = ObjectId.Parse(value?.ToString());
|
||||
}
|
||||
bsonValue = BsonValue.Create(value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user