public CreatePostCommandHandler(IDateTimeService dateTimeService, ICurrentUserService currentUserService,
                                 IForumDbContext context)
 {
     _dateTimeService    = dateTimeService;
     _currentUserService = currentUserService;
     _context            = context;
 }
        public EfGenericRepository(IForumDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <T>();
        }
Beispiel #3
0
 public LoginQueryHandler(IForumDbContext dbContext, ILogger <LoginQueryHandler> logger)
 {
     _dbContext = dbContext;
     _logger    = logger;
 }
Beispiel #4
0
 public GetThreadQueryHandler(IForumDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public CurrentUserService(IForumDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public GetAllSubForumsQueryHandler(IForumDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public CommentsController(IForumDbContext data)
     : base(data)
 {
 }
Beispiel #8
0
 public Repository()
 {
     this.db = new ForumDbContext();
 }
Beispiel #9
0
 public GetFrontPageQueryHandler(IForumDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #10
0
 public GetEmployeeListQueryHandler(IForumDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #11
0
 public SeedCommandHandler(IForumDbContext dbContext,
                           IDateTimeService dateTimeService)
 {
     _dbContext       = dbContext;
     _dateTimeService = dateTimeService;
 }