public GenericRepository(IVidconfileDBContext context) { this.Context = context ?? throw new NullReferenceException("An instance of DbContext is required to use this repository."); this.DbSet = this.Context.Set <T>(); }
public EFUnitOfWork(IVidconfileDBContext context) { this.context = context ?? throw new NullReferenceException("context cannot be null"); }