Click or drag to resize
IMongoCollectionExtensions Class
Inheritance Hierarchy
SystemObject
  MongoDB.DriverIMongoCollectionExtensions

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.1.0
Syntax
public static class IMongoCollectionExtensions

The IMongoCollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAggregateTDocument
Begins a fluent aggregation interface.
Public methodStatic memberAsQueryableTDocument
Creates a queryable source of documents.
Public methodStatic memberCountAsyncTDocument
Counts the number of documents in the collection.
Public methodStatic memberDeleteManyAsyncTDocument
Deletes multiple documents.
Public methodStatic memberDeleteOneAsyncTDocument
Deletes a single document.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsyncTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberFindTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindOneAndDeleteAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TProjection, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TProjection, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsyncTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TProjection, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberReplaceOneAsyncTDocument
Replaces a single document.
Public methodStatic memberUpdateManyAsyncTDocument
Updates many documents.
Public methodStatic memberUpdateOneAsyncTDocument
Updates a single document.
Top
See Also