public ProductsRepository(WnryDbContext context) { this.Context = context ?? throw new ArgumentNullException(nameof(context)); this.DbSet = this.Context.Set <Product>(); }
public AddressesRepository(WnryDbContext context) { this.Context = context ?? throw new ArgumentNullException(nameof(context)); this.DbSet = this.Context.Set <Address>(); }
public ContactDetailsRepository(WnryDbContext context) { this.Context = context ?? throw new ArgumentNullException(nameof(context)); this.DbSet = this.Context.Set <ContactDetails>(); }
public OrdersRepository(WnryDbContext context) : base(context) { }
public BaseRepository(WnryDbContext context) { this.Context = context ?? throw new ArgumentNullException(nameof(context)); this.DbSet = this.Context.Set <TEntity>(); }