mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update mongodb
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Dm.util;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Bson.IO;
|
||||
using MongoDB.Bson.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -88,7 +89,8 @@ namespace SqlSugar.MongoDb
|
||||
}
|
||||
else
|
||||
{
|
||||
var arrayObj = BsonArray.Create(json);
|
||||
using var reader = new JsonReader(json?.toString());
|
||||
var arrayObj = BsonSerializer.Deserialize<BsonValue>(reader);
|
||||
return arrayObj;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user