Click or drag to resize

IMongoCollectionExtensions Methods

Methods
  NameDescription
Public methodStatic memberAggregate<TDocument>(IMongoCollection<TDocument>, AggregateOptions)
Begins a fluent aggregation interface.
Public methodStatic memberAggregate<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, AggregateOptions)
Begins a fluent aggregation interface.
Public methodStatic memberAsQueryable<TDocument>(IMongoCollection<TDocument>, AggregateOptions)
Creates a queryable source of documents.
Public methodStatic memberAsQueryable<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, AggregateOptions)
Creates a queryable source of documents.
Public methodStatic memberCount<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCount<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken) Obsolete.
Counts the number of documents in the collection.
Public methodStatic memberCountDocuments<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see EstimatedDocumentCount(EstimatedDocumentCountOptions, CancellationToken).
Public methodStatic memberCountDocuments<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see EstimatedDocumentCount(EstimatedDocumentCountOptions, CancellationToken).
Public methodStatic memberCountDocumentsAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see EstimatedDocumentCountAsync(EstimatedDocumentCountOptions, CancellationToken).
Public methodStatic memberCountDocumentsAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, CountOptions, CancellationToken)
Counts the number of documents in the collection. For a fast estimate of the total documents in a collection see EstimatedDocumentCountAsync(EstimatedDocumentCountOptions, CancellationToken).
Public methodStatic memberDeleteMany<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteMany<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteMany<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteManyAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes multiple documents.
Public methodStatic memberDeleteOne<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOne<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOne<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDeleteOneAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, DeleteOptions, CancellationToken)
Deletes a single document.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, FieldDefinition<TDocument, TField>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, Expression<Func<TDocument, TField>>, FilterDefinition<TDocument>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, Expression<Func<TDocument, TField>>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, FieldDefinition<TDocument, TField>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, TField>>, FilterDefinition<TDocument>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinct<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, TField>>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, FieldDefinition<TDocument, TField>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, Expression<Func<TDocument, TField>>, FilterDefinition<TDocument>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, Expression<Func<TDocument, TField>>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, FieldDefinition<TDocument, TField>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, TField>>, FilterDefinition<TDocument>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberDistinctAsync<TDocument, TField>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, TField>>, Expression<Func<TDocument, Boolean>>, DistinctOptions, CancellationToken)
Gets the distinct values for a specified field.
Public methodStatic memberFind<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFind<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFind<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFind<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOptions)
Begins a fluent find interface.
Public methodStatic memberFindAsync<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindOneAndDelete<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDelete<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDelete<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDelete<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDelete<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDelete<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndDeleteAsync<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOneAndDeleteOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and deletes it atomically.
Public methodStatic memberFindOneAndReplace<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplace<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplace<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplace<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplace<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplace<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, IClientSessionHandle, TDocument, FindOneAndReplaceOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndReplaceAsync<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, FindOneAndReplaceOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and replaces it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdate<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TDocument>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument, TProjection>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindOneAndUpdateAsync<TDocument, TProjection>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, FindOneAndUpdateOptions<TDocument, TProjection>, CancellationToken)
Finds a single document and updates it atomically.
Public methodStatic memberFindSync<TDocument>(IMongoCollection<TDocument>, FilterDefinition<TDocument>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, FilterDefinition<TDocument>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberFindSync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, FindOptions<TDocument, TDocument>, CancellationToken)
Finds the documents matching the filter.
Public methodStatic memberReplaceOne<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, ReplaceOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOne<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, UpdateOptions, CancellationToken) Obsolete.
Replaces a single document.
Public methodStatic memberReplaceOne<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, ReplaceOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOne<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, UpdateOptions, CancellationToken) Obsolete.
Replaces a single document.
Public methodStatic memberReplaceOneAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, ReplaceOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOneAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, TDocument, UpdateOptions, CancellationToken) Obsolete.
Replaces a single document.
Public methodStatic memberReplaceOneAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, ReplaceOptions, CancellationToken)
Replaces a single document.
Public methodStatic memberReplaceOneAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, TDocument, UpdateOptions, CancellationToken) Obsolete.
Replaces a single document.
Public methodStatic memberUpdateMany<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateMany<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateManyAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateManyAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates many documents.
Public methodStatic memberUpdateOne<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOne<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOneAsync<TDocument>(IMongoCollection<TDocument>, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberUpdateOneAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, Expression<Func<TDocument, Boolean>>, UpdateDefinition<TDocument>, UpdateOptions, CancellationToken)
Updates a single document.
Public methodStatic memberWatch<TDocument>(IMongoCollection<TDocument>, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatch<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatchAsync<TDocument>(IMongoCollection<TDocument>, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Public methodStatic memberWatchAsync<TDocument>(IMongoCollection<TDocument>, IClientSessionHandle, ChangeStreamOptions, CancellationToken)
Watches changes on the collection.
Top
See Also