Table of Contents

Class DbContextModelEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface, TDbContext>

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

Represents a service for performing CRUD operations on a model entity using a DbContext.

public class DbContextModelEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface, TDbContext> : DbContextEntityService<T, TEntityInterface, TDbContext>, IModelEntityService<T, TEdit, TShow, TInsert, TList>, IShowEntityService<T, TShow>, IEditEntityService<T, TEdit>, IListEntityService<T, TList>, IInsertEntityService<T, TInsert>, IEntityService<T> where T : class where TEdit : class where TShow : class where TInsert : class where TList : class where TEntityInterface : class where TDbContext : DbContext

Type Parameters

T

The type of the model entity.

TEdit

The type of the edit model entity.

TShow

The type of the show model entity.

TInsert

The type of the insert model entity.

TList

The type of the list model entity.

TEntityInterface

The type of the entity interface.

TDbContext

The type of the DbContext.

Inheritance
DbContextEntityService<T, TEntityInterface, TDbContext>
DbContextModelEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface, TDbContext>
Implements
IModelEntityService<T, TEdit, TShow, TInsert, TList>
Extension Methods

Constructors

DbContextModelEntityService(IEntitySecurity<T>, IEntityValidationService<T, TEntityInterface>, ISelectorFactory, IEntityFactory<T>, IQueryModifier<T>, IDbContextFactory<TDbContext>)

Initializes a new instance of the DbContextModelEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface, TDbContext> class.

Methods

GetEdit(IPrimaryKey, CancellationToken)

Gets the edit model entity by primary keys.

GetInsert(IPropertyValues, CancellationToken)

Gets the insert model entity by property values.

GetShow(IPrimaryKey, CancellationToken)

Gets the show model entity by primary keys.

Insert(List<TInsert>, CancellationToken)

Inserts a list of model entities into the database.

InsertList(List<TList>, CancellationToken)

Inserts a list of model entities into the database.

ToList(QueryParameter<T>, CancellationToken)

Retrieves a list of model entities based on the query parameters.

Update(List<TEdit>, CancellationToken)

Updates a list of model entities in the database.

UpdateList(List<TList>, CancellationToken)

Updates a list of model entities in the database.