Class InsertUnkeyedEntityIntoInt32IdDbSetCommandHandler<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 int as the primary key.
public abstract class InsertUnkeyedEntityIntoInt32IdDbSetCommandHandler<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, IIntId
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>InsertUnkeyedEntityIntoInt32IdDbSetCommandHandler<TCommand, TResponse, TDbContext, TKeyedEntity>
- Implements
-
ICommandHandler<TCommand, TResponse>IRequestHandler<TCommand, TResponse>
- Inherited Members
Constructors
InsertUnkeyedEntityIntoInt32IdDbSetCommandHandler()
protected InsertUnkeyedEntityIntoInt32IdDbSetCommandHandler()