Пример #1
0
        protected GenericRepository(CacheContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.Context = context;
            this.DbSet   = context.GetTable <TEntity>();
        }