public NBAStatisticsData(INBAStatisticsDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext), "Database context cannot be null!"); } this.DbContext = dbContext; }
public EfRepository(INBAStatisticsDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext), "Database context cannot be null!"); } this.DbContext = dbContext; this.DbSet = this.DbContext.Set <TEntity>(); }