public static Task <long> BulkUpdateDocuments <T>(
     this IMongoCollection <T> collection,
     IEnumerable <T> documents,
     Func <T, FilterDefinitionBuilder <T>, FilterDefinition <T> > filter,
     Func <T, UpdateDefinitionBuilder <T>, UpdateDefinition <T> > update,
     CancellationToken cancellationToken = default
     ) where T : Document
 => collection.BulkUpdateDocuments(documents, filter, update, null, cancellationToken);
示例#2
0
 public static Task <long> BulkUpdateDocuments <T>(
     this IMongoCollection <T> collection,
     IEnumerable <T> documents,
     BuildBulkFilter <T> filter,
     BuildBulkUpdate <T> update,
     CancellationToken cancellationToken = default
     ) where T : Document
 => collection.BulkUpdateDocuments(documents, filter, update, null, cancellationToken);