public ProductController(OdysseyContext context) { _iProductRepository = new ProductRepository(context); }
public InventoryController(OdysseyContext context) { _iIngredientRepository = new IngredientRepository(context); }
public IngredientRepository(OdysseyContext context) { db = context; }
public DatabaseFactory() { dataContext = new OdysseyContext(); }
public ProductRepository(OdysseyContext context) { db = context; }
public CRUDModel(OdysseyContext _context) { this.dataContext = _context; dbSet = _context.Set <T>(); }
public CRUDModel() { this.dataContext = new OdysseyContext(); dbSet = dataContext.Set <T>(); }