From bda4215f2a1d77ab4e0158dec81219d506047931 Mon Sep 17 00:00:00 2001 From: maliming Date: Sat, 18 Jan 2025 18:47:23 +0800 Subject: [PATCH] Update MongoDB-Driver-2-to-3.md --- .../release-info/migration-guides/MongoDB-Driver-2-to-3.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/release-info/migration-guides/MongoDB-Driver-2-to-3.md b/docs/en/release-info/migration-guides/MongoDB-Driver-2-to-3.md index 6e92356edc..79c0d70573 100644 --- a/docs/en/release-info/migration-guides/MongoDB-Driver-2-to-3.md +++ b/docs/en/release-info/migration-guides/MongoDB-Driver-2-to-3.md @@ -10,8 +10,9 @@ Please refer to the [upgrade guide](https://www.mongodb.com/docs/drivers/csharp/ Some method signatures in the `MongoDbRepository` class have been updated because the `IMongoQueryable` has been removed. The specific changes are as follows: -- The `GetMongoQueryable` method has been renamed to `GetQueryable`. -- The `GetMongoQueryableAsync` method has been renamed to `GetQueryableAsync`. +- The new `GetQueryableAsync` method has been added to return `IQueryable`. +- The `GetMongoQueryable` and `GetMongoQueryableAsync` methods return `IQueryable` instead of `IMongoQueryable`, +- The `GetMongoQueryable` and `GetMongoQueryableAsync` methods are marked as obsolete, You should use the new `GetQueryableAsync` method instead. Please update your application by searching for and replacing these method calls.