Table of Contents

Method SaveUpdatesAsync

Namespace
MongoDB.EntityFrameworkCore.Storage
Assembly
MongoDB.EntityFrameworkCore.dll

SaveUpdatesAsync(IEnumerable<MongoUpdate>, CancellationToken)

Save updates to a MongoDB database asynchronously.

Task<long> SaveUpdatesAsync(IEnumerable<MongoUpdate> updates, CancellationToken cancellationToken)

Parameters

updates IEnumerable<MongoUpdate>

The updates to save to the database.

cancellationToken CancellationToken

Returns

Task<long>

A task that when completed gives the number of affected documents.