예제 #1
0
 public void AddComponentStock(int componentId, decimal originalQuantity, DateTime date, decimal cost, int supplierId)
 {
     ComponentStock newComponentStock = new ComponentStock
     {
         ComponentId = componentId,
         CurrentQuantity = originalQuantity,
         OriginalQuantity = originalQuantity,
         Date = date,
         Cost = cost,
         SupplierId = supplierId
     };
     db.ComponentStocks.InsertOnSubmit(newComponentStock);
     Save();
 }
예제 #2
0
		private void detach_ComponentStocks(ComponentStock entity)
		{
			this.SendPropertyChanging();
			entity.Component = null;
		}
예제 #3
0
		private void attach_ComponentStocks(ComponentStock entity)
		{
			this.SendPropertyChanging();
			entity.Component = this;
		}
예제 #4
0
 partial void DeleteComponentStock(ComponentStock instance);
예제 #5
0
 partial void UpdateComponentStock(ComponentStock instance);
예제 #6
0
 partial void InsertComponentStock(ComponentStock instance);