Method InsertMany
InsertMany(IEnumerable<TDocument>, InsertManyOptions, CancellationToken)
Inserts many documents.
void InsertMany(IEnumerable<TDocument> documents, InsertManyOptions options = null, CancellationToken cancellationToken = default)
Parameters
documentsIEnumerable<TDocument>The documents.
optionsInsertManyOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
InsertMany(IClientSessionHandle, IEnumerable<TDocument>, InsertManyOptions, CancellationToken)
Inserts many documents.
void InsertMany(IClientSessionHandle session, IEnumerable<TDocument> documents, InsertManyOptions options = null, CancellationToken cancellationToken = default)
Parameters
sessionIClientSessionHandleThe session.
documentsIEnumerable<TDocument>The documents.
optionsInsertManyOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.