예제 #1
0
 internal void DeleteStockItem(StockItem StockItem)
 {
     _readModel.StockItems.Attach(StockItem);
     _readModel.Entry(StockItem).State = EntityState.Deleted;
     _readModel.SaveChanges();
 }
예제 #2
0
 internal void UpdateStockItem(StockItem StockItem)
 {
     // _readModel.StockItems.Attach(StockItem);
     // _readModel.Entry(StockItem).State = EntityState.Modified;
     // _readModel.SaveChanges();
 }
예제 #3
0
 internal void SaveStockItem(StockItem StockItem)
 {
     // _readModel.StockItems.Add(StockItem);
     // _readModel.SaveChanges();
 }
예제 #4
0
 protected void SaveEvents(StockItem StockItem)
 {
     Repository.Save(StockItem);
 }