Table of Contents

Method SaveUpdatesAsync

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

SaveUpdatesAsync(IEnumerable<MongoUpdate>, CancellationToken)

Save the supplied MongoUpdate operations to the database asynchronously.

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

Parameters

updates IEnumerable<MongoUpdate>

An IEnumerable<T> containing the updates to apply to the database.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the operation.

Returns

Task<long>

A Task that when resolved gives the number of documents modified.