Skip to content

Commit

Permalink
Merge pull request #196 from pengqian089/upgrade-mongdb-driver
Browse files Browse the repository at this point in the history
upgrade the MongoDB driver to 3.0 and complete the adaptation
  • Loading branch information
kklldog authored Nov 2, 2024
2 parents 6524422 + 436ccf3 commit 7b9e57a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="FreeSql" Version="2.5.200" />
<PackageReference Include="MongoDB.Bson" Version="2.23.0" />
<PackageReference Include="MongoDB.Bson" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="MongoDB.Analyzer" Version="1.3.0" />
<PackageReference Include="MongoDB.Driver" Version="2.22.0" />
<PackageReference Include="MongoDB.Analyzer" Version="1.5.0" />
<PackageReference Include="MongoDB.Driver" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/AgileConfig.Server.Data.Mongodb/MongodbAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public sealed class MongodbAccess<T>(string? connectionString) : MongodbAccess(c
/// 获取 提供对MongoDB数据查询的Queryable
/// </summary>
/// <returns></returns>
public IMongoQueryable<T> MongoQueryable => Database.GetCollection<T>(CollectionName).AsQueryable(
public IQueryable<T> MongoQueryable => Database.GetCollection<T>(CollectionName).AsQueryable(
new AggregateOptions { AllowDiskUse = true });
}

0 comments on commit 7b9e57a

Please sign in to comment.