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>(); }
public ImageGalleryData(IImageGalleryDbContext context) { this.context = context; }