コード例 #1
0
 public ShelvesController(InventoryDbContext context)
 {
     _context = context;
 }
コード例 #2
0
ファイル: StockItemFactory.cs プロジェクト: lulzzz/GoFish
 public StockItemFactory(InventoryDbContext cache)
 {
     _cache = cache;
 }
コード例 #3
0
ファイル: InventoryDbContext.cs プロジェクト: lulzzz/GoFish
 public static void SeedData(this InventoryDbContext context)
 {
     EnsureDbIsCreated(context);
     AddStockOwners(context);
     AddProductTypes(context);
 }
コード例 #4
0
ファイル: InventoryDbContext.cs プロジェクト: lulzzz/GoFish
 private static void EnsureDbIsCreated(InventoryDbContext context)
 {
     context.Database.Migrate();
 }
コード例 #5
0
ファイル: InventoryRepository.cs プロジェクト: lulzzz/GoFish
 public InventoryRepository(InventoryDbContext readModel, IEventStoreConnection writeModel)
 {
     _readModel  = readModel;
     _writeModel = writeModel;
     _writeModel.ConnectAsync();
 }