Show / Hide Table of Contents

Interface IDbContext

Represents a database context that can be used to save changes in an underlying store.

Inherited Members
System.IDisposable.Dispose()
Namespace: IRM.Domain.Persistance
Assembly: IRM.dll
Syntax
public interface IDbContext : IDisposable

Methods

SaveChanges()

Saves all changes made in this context to the underlying database and eventually to the event store.

Declaration
int SaveChanges()
Returns
System.Int32

The number of objects written to the underlying database.

SaveChangesAsync(CancellationToken)

Asynchronously saves all changes made in this context to the underlying database and eventually to the event store.

Declaration
Task<int> SaveChangesAsync(CancellationToken cancellationToken)
Parameters
System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

Returns
System.Threading.Tasks.Task<System.Int32>

A task that represents the asynchronous save operation. The task result contains the number of objects written to the underlying database.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX