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