/// <summary>
 /// Deprecated Method for adding a new object to the MaterialStocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMaterialStocks(MaterialStock materialStock)
 {
     base.AddObject("MaterialStocks", materialStock);
 }
 /// <summary>
 /// Create a new MaterialStock object.
 /// </summary>
 /// <param name="materialStockID">Initial value of the MaterialStockID property.</param>
 /// <param name="stockQuantity">Initial value of the StockQuantity property.</param>
 /// <param name="issuedQuantity">Initial value of the IssuedQuantity property.</param>
 /// <param name="inStockDateTime">Initial value of the InStockDateTime property.</param>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="subMaterialsNameID">Initial value of the SubMaterialsNameID property.</param>
 /// <param name="uOMID">Initial value of the UOMID property.</param>
 public static MaterialStock CreateMaterialStock(global::System.Int64 materialStockID, global::System.Decimal stockQuantity, global::System.Decimal issuedQuantity, global::System.DateTime inStockDateTime, global::System.Int64 orderID, global::System.Int64 subMaterialsNameID, global::System.Int16 uOMID)
 {
     MaterialStock materialStock = new MaterialStock();
     materialStock.MaterialStockID = materialStockID;
     materialStock.StockQuantity = stockQuantity;
     materialStock.IssuedQuantity = issuedQuantity;
     materialStock.InStockDateTime = inStockDateTime;
     materialStock.OrderID = orderID;
     materialStock.SubMaterialsNameID = subMaterialsNameID;
     materialStock.UOMID = uOMID;
     return materialStock;
 }