Method InsertMany
InsertMany(IEnumerable<TDocument>, InsertManyOptions, CancellationToken)
Inserts many documents.
public virtual void InsertMany(IEnumerable<TDocument> documents, InsertManyOptions options = null, CancellationToken cancellationToken = default)
Parameters
documents
IEnumerable<TDocument>The documents.
options
InsertManyOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
InsertMany(IClientSessionHandle, IEnumerable<TDocument>, InsertManyOptions, CancellationToken)
Inserts many documents.
public virtual void InsertMany(IClientSessionHandle session, IEnumerable<TDocument> documents, InsertManyOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
documents
IEnumerable<TDocument>The documents.
options
InsertManyOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.