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