Пример #1
0
        public GenericRepository(IImageGalleryDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of IImageGalleryDbContext is required to use this repository.", nameof(context));
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <TEntity>();
        }
Пример #2
0
 public ImageGalleryData(IImageGalleryDbContext context)
 {
     this.context = context;
 }