Ejemplo n.º 1
0
 public BaseRepository(KnowledgeBaseDbContext dbContext)
 {
     _dbContext = dbContext;
     _dbSet     = dbContext.Set <TEntity>();
 }
 public UnitOfWork(KnowledgeBaseDbContext context)
 {
     this.Context = context;
 }
Ejemplo n.º 3
0
 public InformationRepository(KnowledgeBaseDbContext dbContext) : base(dbContext)
 {
 }
Ejemplo n.º 4
0
 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;
 }