Exemplo n.º 1
0
 public void AddProductStock(int productId, decimal originalQuantity, DateTime date, decimal cost, int supplierId)
 {
     ProductStock newProductStock = new ProductStock
     {
         ProductId = productId,
         CurrentQuantity = originalQuantity,
         OriginalQuantity = originalQuantity,
         Date = date,
         Cost = cost,
         SupplierId = supplierId
     };
     db.ProductStocks.InsertOnSubmit(newProductStock);
     Save();
 }
Exemplo n.º 2
0
 partial void DeleteProductStock(ProductStock instance);
Exemplo n.º 3
0
 partial void UpdateProductStock(ProductStock instance);
Exemplo n.º 4
0
 partial void InsertProductStock(ProductStock instance);
Exemplo n.º 5
0
		private void detach_ProductStocks(ProductStock entity)
		{
			this.SendPropertyChanging();
			entity.Supplier = null;
		}
Exemplo n.º 6
0
		private void attach_ProductStocks(ProductStock entity)
		{
			this.SendPropertyChanging();
			entity.Product = this;
		}