Skip to content

Commit 16ea688

Browse files
authored
CSHARP-5324: Mark API as obsolete: Transactions + LINQ (#1493)
1 parent 59878b7 commit 16ea688

File tree

12 files changed

+18
-0
lines changed

12 files changed

+18
-0
lines changed

src/MongoDB.Driver.Core/Core/Clusters/CryptClientCreator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace MongoDB.Driver.Core.Clusters
2727
/// <summary>
2828
/// Represents a creator for CryptClient.
2929
/// </summary>
30+
[Obsolete("This class will be made internal in a later release.")]
3031
public sealed class CryptClientCreator
3132
{
3233
#region static

src/MongoDB.Driver.Core/Core/Operations/DeleteRequest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16+
using System;
1617
using MongoDB.Bson;
1718
using MongoDB.Driver.Core.Connections;
1819
using MongoDB.Driver.Core.Misc;
@@ -22,6 +23,7 @@ namespace MongoDB.Driver.Core.Operations
2223
/// <summary>
2324
/// Represents a request to delete one or more documents.
2425
/// </summary>
26+
[Obsolete("This class will be made internal in a later release.")]
2527
public sealed class DeleteRequest : WriteRequest
2628
{
2729
// fields

src/MongoDB.Driver.Core/Core/Operations/ElementNameValidators/ElementNameValidatorFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
* limitations under the License.
1414
*/
1515

16+
using System;
1617
using MongoDB.Bson.IO;
1718

1819
namespace MongoDB.Driver.Core.Operations.ElementNameValidators
1920
{
2021
/// <summary>
2122
/// Represents a factory for element name validators based on the update type.
2223
/// </summary>
24+
[Obsolete("This class will be made internal in a later release.")]
2325
public static class ElementNameValidatorFactory
2426
{
2527
/// <summary>

src/MongoDB.Driver.Core/Core/Operations/InsertRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace MongoDB.Driver.Core.Operations
2424
/// <summary>
2525
/// Represents a request to insert a document.
2626
/// </summary>
27+
[Obsolete("This class will be made internal in a later release.")]
2728
public sealed class InsertRequest : WriteRequest
2829
{
2930
// fields

src/MongoDB.Driver.Core/Core/Operations/UpdateRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace MongoDB.Driver.Core.Operations
2424
/// <summary>
2525
/// Represents a request to update one or more documents.
2626
/// </summary>
27+
[Obsolete("This class will be made internal in a later release.")]
2728
public sealed class UpdateRequest : WriteRequest
2829
{
2930
// fields

src/MongoDB.Driver.Core/Core/Operations/WriteRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace MongoDB.Driver.Core.Operations
2222
/// Represents a request to write something to the database.
2323
/// </summary>
2424
[Serializable]
25+
[Obsolete("This class will be made internal in a later release.")]
2526
public abstract class WriteRequest
2627
{
2728
// fields

src/MongoDB.Driver.Core/Core/Operations/WriteRequestType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
* limitations under the License.
1414
*/
1515

16+
using System;
17+
1618
namespace MongoDB.Driver.Core.Operations
1719
{
1820
/// <summary>
1921
/// Represents the type of a write request.
2022
/// </summary>
23+
[Obsolete("This enum will be made internal in a later release.")]
2124
public enum WriteRequestType
2225
{
2326
/// <summary>

src/MongoDB.Driver/Linq/IMongoQueryable.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16+
using System;
1617
using System.Linq;
1718
using MongoDB.Bson;
1819

@@ -21,6 +22,7 @@ namespace MongoDB.Driver.Linq
2122
/// <summary>
2223
/// Provides functionality to evaluate queries against MongoDB.
2324
/// </summary>
25+
[Obsolete("This interface will be removed in a later release.")]
2426
public interface IMongoQueryable : IQueryable
2527
{
2628
/// <summary>
@@ -39,6 +41,7 @@ public interface IMongoQueryable : IQueryable
3941
/// <returns>
4042
/// The execution model.
4143
/// </returns>
44+
[Obsolete("This method will be removed in a later release.")]
4245
QueryableExecutionModel GetExecutionModel();
4346
}
4447

src/MongoDB.Driver/Linq/LinqProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public enum LinqProvider
2727
/// but you can still select the V2 provider by configuring it in MongoClientSettings. The V2 LINQ provider is no
2828
/// longer being actively maintained and will eventually be removed.
2929
/// </summary>
30+
[Obsolete("This version of the LINQ provider will be removed in a later release.")]
3031
V2 = 2,
3132

3233
/// <summary>

src/MongoDB.Driver/MongoClientSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ public LibraryInfo LibraryInfo
434434
/// <summary>
435435
/// Gets or sets the LINQ provider.
436436
/// </summary>
437+
[Obsolete("This property will be removed in a later release.")]
437438
public LinqProvider LinqProvider
438439
{
439440
get { return _linqProvider; }

0 commit comments

Comments
 (0)