public GenericRepository(ISupermarketsChainDbContext context)
 {
     this.Context = context;
     this.set     = context.Set <T>();
 }
 public SalesRepository(ISupermarketsChainDbContext supermarketsChainDbContext)
     : base(supermarketsChainDbContext)
 {
 }
示例#3
0
 public SupermarketsChainData(ISupermarketsChainDbContext supermarketsChainDbContext)
 {
     this.context      = supermarketsChainDbContext;
     this.repositories = new Dictionary <Type, object>();
 }