Example #1
0
 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>();
 }
Example #3
0
 public ContactDetailsRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <ContactDetails>();
 }
Example #4
0
 public OrdersRepository(WnryDbContext context) : base(context)
 {
 }
Example #5
0
 public BaseRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <TEntity>();
 }