Table of Contents

SaveChangesAsync Method

Definition

Namespace
Savvyio.Extensions.EFCore.Domain
Assemblies
Savvyio.Extensions.EFCore.Domain.dll
Source
src/Savvyio.Extensions.EFCore.Domain/EfCoreAggregateDataSource.cs

SaveChangesAsync(Action<AsyncOptions>)

Saves the different IRepository<TEntity, TKey> implementations as one transaction towards a data store asynchronous.

public override Task SaveChangesAsync(Action<AsyncOptions> setup = null)

Parameters

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A Task that represents the asynchronous operation.

Remarks

Will, just before SaveChangesAsync(CancellationToken) is called, extract and call RaiseAsync(IDomainEvent, Action<AsyncOptions>) for all aggregate roots contained within the backing DbContext.