예제 #1
0
 public Repository(DbContextClass dbContextClass)
 {
     _context = dbContextClass;
     players  = _context.players;
     matches  = _context.matches;
     rounds   = _context.rounds;
 }
예제 #2
0
 public Repository(DbContextClass dbContextClass, ILogger <Repository> logger)
 {
     _dbContext   = dbContextClass;
     this.players = _dbContext.players;
     this.matches = _dbContext.matches;
     this.rounds  = _dbContext.rounds;
     _logger      = logger;
 }
 // For Testing Populating Database
 //List<Location> storeList = new List<Location>();
 public Repository(DbContextClass dbContextClass)
 {
     _dbContext       = dbContextClass;
     this.users       = _dbContext.users;
     this.locations   = _dbContext.locations;
     this.orders      = _dbContext.orders;
     this.products    = _dbContext.products;
     this.inventories = _dbContext.inventories;
     this.carts       = _dbContext.carts;
     PopulateDb();
 }