public BaseRepository(KnowledgeBaseDbContext dbContext) { _dbContext = dbContext; _dbSet = dbContext.Set <TEntity>(); }
public UnitOfWork(KnowledgeBaseDbContext context) { this.Context = context; }
public InformationRepository(KnowledgeBaseDbContext dbContext) : base(dbContext) { }
public TestRepository(KnowledgeBaseDbContext context) : base(context) { }
public Repository(KnowledgeBaseDbContext context) { this.Context = context ?? throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); this.DbSet = this.Context.Set <T>(); }
public TransactedCommandHandlerDecorator(ICommandHandler <TCommand, TCommandOutput> commandHandler, KnowledgeBaseDbContext dbContext) { this._commandHandler = commandHandler; this._dbContext = dbContext; }