public static async Task <T> CreateEntity <T>(IIssueTrackerDbContext context, T entity) where T : class { // insert initial entity entity = context.Add(entity).Entity; await context.SaveChangesAsync(CancellationToken.None); return(entity); }
public CreateIssueTypeCommandHandler(IIssueTrackerDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public GetAllProjectsQueryHandler(IIssueTrackerDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DeleteProjectParticipantsCommandHandler(IIssueTrackerDbContext context) { _context = context; }
public LoginCommandHandler(IIssueTrackerDbContext context, IMapper mapper, IOptions <AppSettings> appSettings) { _context = context; _mapper = mapper; _appSettings = appSettings.Value; }
public CreateProjectCommandHandler(IIssueTrackerDbContext context, IMapper mapper, IMediator mediator) { _context = context; _mapper = mapper; _mediator = mediator; }
public CreateProjectCommandValidators(IIssueTrackerDbContext context) { _context = context; RuleFor(x => x.Key).Must(UniqueKey).WithMessage("This key already exists."); }
public UpdateProjectParticipantsCommandHandler(IIssueTrackerDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public DeleteIssueTypeCommandHandler(IIssueTrackerDbContext context) { _context = context; }
public CreateUserCommandValidators(IIssueTrackerDbContext context) { _context = context; RuleFor(x => x.Email).Must(UniqueEmail).WithMessage("This Email already exists."); }