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(); }
private void detach_ComponentStocks(ComponentStock entity) { this.SendPropertyChanging(); entity.Component = null; }
private void attach_ComponentStocks(ComponentStock entity) { this.SendPropertyChanging(); entity.Component = this; }
partial void DeleteComponentStock(ComponentStock instance);
partial void UpdateComponentStock(ComponentStock instance);
partial void InsertComponentStock(ComponentStock instance);