Table of Contents

Class EntityRevisionService<T, TContext>

Namespace
Innova.Data.Revision
Assembly
Innova.Data.dll

Service for managing entity revisions.

public class EntityRevisionService<T, TContext> : IEntityRevisionService<T> where T : class where TContext : DbContext

Type Parameters

T

The type of the entity.

TContext

The type of the DbContext.

Inheritance
EntityRevisionService<T, TContext>
Implements

Constructors

EntityRevisionService(IDbContextFactory<TContext>, IEntityRevisionServiceConfiguration<T>)

Initializes a new instance of the EntityRevisionService<T, TContext> class.

Fields

Columns

The list of revision columns.

Properties

TableName

The name of the table.

Methods

GetReadRevision(IPrimaryKey)

Gets the read revision items for the specified primary keys.

GetRevision(IPrimaryKey, int, List<string>, string)

Gets the revision items for the specified primary keys.

InsertReadRevision(IPrimaryKey)

Inserts a read revision item for the specified primary keys.