MongoCollectionBaseTDocument Class |
Namespace: MongoDB.Driver
The MongoCollectionBaseTDocument type exposes the following members.
Name | Description | |
---|---|---|
MongoCollectionBaseTDocument | Initializes a new instance of the MongoCollectionBaseTDocument class |
Name | Description | |
---|---|---|
AggregateTResult |
Runs an aggregation pipeline.
| |
AggregateAsyncTResult |
Runs an aggregation pipeline.
| |
BulkWrite |
Performs multiple write operations.
| |
BulkWriteAsync |
Performs multiple write operations.
| |
Count |
Counts the number of documents in the collection.
| |
CountAsync |
Counts the number of documents in the collection.
| |
DeleteMany |
Deletes multiple documents.
| |
DeleteManyAsync |
Deletes multiple documents.
| |
DeleteOne |
Deletes a single document.
| |
DeleteOneAsync |
Deletes a single document.
| |
DistinctTField |
Gets the distinct values for a specified field.
| |
DistinctAsyncTField |
Gets the distinct values for a specified field.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindAsyncTProjection |
Finds the documents matching the filter.
| |
FindOneAndDeleteTProjection |
Finds a single document and deletes it atomically.
| |
FindOneAndDeleteAsyncTProjection |
Finds a single document and deletes it atomically.
| |
FindOneAndReplaceTProjection |
Finds a single document and replaces it atomically.
| |
FindOneAndReplaceAsyncTProjection |
Finds a single document and replaces it atomically.
| |
FindOneAndUpdateTProjection |
Finds a single document and updates it atomically.
| |
FindOneAndUpdateAsyncTProjection |
Finds a single document and updates it atomically.
| |
FindSyncTProjection |
Finds the documents matching the filter.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertMany |
Inserts many documents.
| |
InsertManyAsync |
Inserts many documents.
| |
InsertOne |
Inserts a single document.
| |
InsertOneAsync(TDocument, CancellationToken) | Obsolete.
Inserts a single document.
| |
InsertOneAsync(TDocument, InsertOneOptions, CancellationToken) |
Inserts a single document.
| |
MapReduceTResult |
Executes a map-reduce command.
| |
MapReduceAsyncTResult |
Executes a map-reduce command.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OfTypeTDerivedDocument |
Returns a filtered collection that appears to contain only documents of the derived type.
All operations using this filtered collection will automatically use discriminators as necessary.
| |
ReplaceOne |
Replaces a single document.
| |
ReplaceOneAsync |
Replaces a single document.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateMany |
Updates many documents.
| |
UpdateManyAsync |
Updates many documents.
| |
UpdateOne |
Updates a single document.
| |
UpdateOneAsync |
Updates a single document.
| |
WithReadConcern |
Returns a new collection with a different read concern.
| |
WithReadPreference |
Returns a new collection with a different read preference.
| |
WithWriteConcern |
Returns a new collection with a different write concern.
|
Name | Description | |
---|---|---|
CollectionNamespace |
Gets the namespace of the collection.
| |
Database |
Gets the database.
| |
DocumentSerializer |
Gets the document serializer.
| |
Indexes |
Gets the index manager.
| |
Settings |
Gets the settings.
|