From 436ccf31e98b72167914111871344d38e0675ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E8=BF=81?= Date: Fri, 1 Nov 2024 19:29:57 +0800 Subject: [PATCH] upgrade the MongoDB driver to 3.0 and complete the adaptation --- .../AgileConfig.Server.Data.Entity.csproj | 2 +- .../AgileConfig.Server.Data.Mongodb.csproj | 4 ++-- src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AgileConfig.Server.Data.Entity/AgileConfig.Server.Data.Entity.csproj b/src/AgileConfig.Server.Data.Entity/AgileConfig.Server.Data.Entity.csproj index f0a576df..72e94300 100644 --- a/src/AgileConfig.Server.Data.Entity/AgileConfig.Server.Data.Entity.csproj +++ b/src/AgileConfig.Server.Data.Entity/AgileConfig.Server.Data.Entity.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/AgileConfig.Server.Data.Mongodb/AgileConfig.Server.Data.Mongodb.csproj b/src/AgileConfig.Server.Data.Mongodb/AgileConfig.Server.Data.Mongodb.csproj index dc28253b..23e3ca94 100644 --- a/src/AgileConfig.Server.Data.Mongodb/AgileConfig.Server.Data.Mongodb.csproj +++ b/src/AgileConfig.Server.Data.Mongodb/AgileConfig.Server.Data.Mongodb.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs b/src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs index efa67da0..e23fdd27 100644 --- a/src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs +++ b/src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs @@ -65,6 +65,6 @@ public sealed class MongodbAccess(string? connectionString) : MongodbAccess(c /// 获取 提供对MongoDB数据查询的Queryable /// /// - public IMongoQueryable MongoQueryable => Database.GetCollection(CollectionName).AsQueryable( + public IQueryable MongoQueryable => Database.GetCollection(CollectionName).AsQueryable( new AggregateOptions { AllowDiskUse = true }); } \ No newline at end of file