Table of Contents

Interface IBaseNonEventDomainRepository<TDomain>

Namespace: Casewhere.Runtime.Workflows
Assembly: Casewhere.Runtime.dll

public interface IBaseNonEventDomainRepository<TDomain> where TDomain : SnapshotAggregateRoot

Type Parameters

TDomain

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IBaseNonEventDomainRepository<TDomain>>(IBaseNonEventDomainRepository<TDomain>)

Methods

Add(TDomain)

void Add(TDomain domain)

Parameters

domain TDomain

CommitSession(Predicate<TDomain>)

void CommitSession(Predicate<TDomain> predicate = null)

Parameters

predicate Predicate<TDomain>

Exists(Guid)

bool Exists(Guid id)

Parameters

id Guid

Returns

bool

Get(Guid)

TDomain Get(Guid id)

Parameters

id Guid

Returns

TDomain

TryGet(Guid, out TDomain)

bool TryGet(Guid id, out TDomain entity)

Parameters

id Guid

entity TDomain

Returns

bool