Click or drag to resize
IMongoCollectionExtensions Methods

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 memberCountTDocument
Counts the number of documents in the collection.
Public methodStatic memberCountAsyncTDocument
Counts the number of documents in the collection.
Public methodStatic memberDeleteManyTDocument
Deletes multiple documents.
Public methodStatic memberDeleteManyAsyncTDocument
Deletes multiple documents.
Public methodStatic memberDeleteOneTDocument
Deletes a single document.
Public methodStatic memberDeleteOneAsyncTDocument
Deletes a single document.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, FieldDefinitionTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, FilterDefinitionTDocument, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctTDocument, TField(IMongoCollectionTDocument, ExpressionFuncTDocument, TField, ExpressionFuncTDocument, Boolean, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
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 memberFindOneAndDeleteTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TDocument, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOneAndDeleteOptionsTDocument, TProjection, CancellationToken)
Finds a single document and deletes it atomically.
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 memberFindOneAndReplaceTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TDocument, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, TDocument, FindOneAndReplaceOptionsTDocument, TProjection, CancellationToken)
Finds a single document and replaces 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 memberFindOneAndUpdateTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TDocument, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateTDocument, TProjection(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, UpdateDefinitionTDocument, FindOneAndUpdateOptionsTDocument, TProjection, CancellationToken)
Finds a single document and updates 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 memberFindSyncTDocument(IMongoCollectionTDocument, FilterDefinitionTDocument, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSyncTDocument(IMongoCollectionTDocument, ExpressionFuncTDocument, Boolean, FindOptionsTDocument, TDocument, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberReplaceOneTDocument
Replaces a single document.
Public methodStatic memberReplaceOneAsyncTDocument
Replaces a single document.
Public methodStatic memberUpdateManyTDocument
Updates many documents.
Public methodStatic memberUpdateManyAsyncTDocument
Updates many documents.
Public methodStatic memberUpdateOneTDocument
Updates a single document.
Public methodStatic memberUpdateOneAsyncTDocument
Updates a single document.
Top
See Also