Update mongodb

This commit is contained in:
sunkaixuan
2025-06-24 19:28:42 +08:00
parent 2244cd40d2
commit 755d9af8c6
2 changed files with 13 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ namespace SqlSugar.MongoDb
}
else
{
if (column.IsPrimarykey&& value!=null)
{
value = ObjectId.Parse(value?.ToString());
}
bsonValue = BsonValue.Create(value);
}