private readonly DbContext dbContext; //Database public BsRepository(BsContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } this.dbContext = dbContext; }
public BsButtonCommandRepository(BsContext bsContext) { Context = bsContext; }
public BsButtonQueryRepository(BsContext bsContext) { Context = bsContext; }
protected Operation() { dbContext = new BsContext(); dbContext.Database.Log = BsLogger.LogInfo; genericRepository = new BsRepository(dbContext); }