Exemplo n.º 1
0
 public ProductsRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <Product>();
 }
Exemplo n.º 2
0
 public AddressesRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <Address>();
 }
Exemplo n.º 3
0
 public ContactDetailsRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <ContactDetails>();
 }
Exemplo n.º 4
0
 public OrdersRepository(WnryDbContext context) : base(context)
 {
 }
Exemplo n.º 5
0
 public BaseRepository(WnryDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <TEntity>();
 }