public NBAStatisticsData(INBAStatisticsDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext), "Database context cannot be null!");
            }

            this.DbContext = dbContext;
        }
Esempio n. 2
0
        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>();
        }