コード例 #1
0
 public ProductController(OdysseyContext context)
 {
     _iProductRepository = new ProductRepository(context);
 }
コード例 #2
0
 public InventoryController(OdysseyContext context)
 {
     _iIngredientRepository = new IngredientRepository(context);
 }
コード例 #3
0
 public IngredientRepository(OdysseyContext context)
 {
     db = context;
 }
コード例 #4
0
 public DatabaseFactory()
 {
     dataContext = new OdysseyContext();
 }
コード例 #5
0
 public ProductRepository(OdysseyContext context)
 {
     db = context;
 }
コード例 #6
0
ファイル: CRUDModel.cs プロジェクト: KatelynKim/odyssey
 public CRUDModel(OdysseyContext _context)
 {
     this.dataContext = _context;
     dbSet            = _context.Set <T>();
 }
コード例 #7
0
ファイル: CRUDModel.cs プロジェクト: KatelynKim/odyssey
 public CRUDModel()
 {
     this.dataContext = new OdysseyContext();
     dbSet            = dataContext.Set <T>();
 }