/// <summary>
 /// Deprecated Method for adding a new object to the MaterialInStocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMaterialInStocks(MaterialInStock materialInStock)
 {
     base.AddObject("MaterialInStocks", materialInStock);
 }
 /// <summary>
 /// Create a new MaterialInStock object.
 /// </summary>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="numberOfItem">Initial value of the NumberOfItem property.</param>
 /// <param name="latestUpdate">Initial value of the LatestUpdate property.</param>
 public static MaterialInStock CreateMaterialInStock(global::System.Int32 productId, global::System.Int32 numberOfItem, global::System.DateTime latestUpdate)
 {
     MaterialInStock materialInStock = new MaterialInStock();
     materialInStock.ProductId = productId;
     materialInStock.NumberOfItem = numberOfItem;
     materialInStock.LatestUpdate = latestUpdate;
     return materialInStock;
 }