Table of Contents

Class InsertUnkeyedEntityIntoLongIdDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity>

Namespace
Whipstaff.MediatR.EntityFrameworkCore
Assembly
Whipstaff.MediatR.EntityFrameworkCore.dll

Abstract class for inserting an unkeyed entity into a DbSet<TEntity> that uses an long as the primary key.

public abstract class InsertUnkeyedEntityIntoLongIdDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity> : InsertUnkeyedEntityIntoKeyedDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity>, ICommandHandler<TCommand, TResponse>, IRequestHandler<TCommand, TResponse> where TCommand : ICommand<TResponse> where TDbContext : DbContext where TKeyedEntity : class, ILongId

Type Parameters

TCommand

The type for the CQRS command.

TResponse

The type for the CQRS response.

TDbContext

The type for the DbContext.

TKeyedEntity

The type for the entity in the DbSet we will save to.

Inheritance
InsertUnkeyedEntityIntoKeyedDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity>
InsertUnkeyedEntityIntoLongIdDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity>
Implements
ICommandHandler<TCommand, TResponse>
IRequestHandler<TCommand, TResponse>
Inherited Members

Constructors

InsertUnkeyedEntityIntoLongIdDbSetCommandHandler()

protected InsertUnkeyedEntityIntoLongIdDbSetCommandHandler()