public ProductsCatalogData()
 {
     this.context      = new ProductsCatalogDbContext();
     this.repositories = new Dictionary <Type, object>();
 }
コード例 #2
0
 public GenericRepository(IProductsCatalogDbContext context, string name)
 {
     this.context = context;
     this.set     = context.Set <T>(name);
 }