Home IEntityRepository<TEntity> Interface
Post
Cancel

IEntityRepository<TEntity> Interface

Definition

Namespace: EntityDb.Abstractions.Entities
Assembly: EntityDb.Abstractions

Encapsulates the transaction repository and the snapshot repository of an entity.

1
public interface IEntityRepository<TEntity> : EntityDb.Abstractions.Disposables.IDisposableResource, System.IDisposable, System.IAsyncDisposable

Type Parameters

TEntity
The type of the entity.

Properties

TransactionRepository The backing transaction repository.
SnapshotRepository The backing snapshot repository (if snapshot is available).

Methods

GetSnapshot(Pointer, CancellationToken) Returns the snapshot of a TEntity for a given Pointer.
PutTransaction(ITransaction, CancellationToken) Inserts a single transaction with an atomic commit.
This post is licensed under CC BY 4.0 by the author.