Example #1
0
        public SqlRepository(IntranetDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

            _dbContext = dbContext;
            _dbSet     = dbContext.Set <T>();
        }