/// <summary>
 /// Deprecated Method for adding a new object to the TempStkHis EntitySet.
 /// </summary>
 public void AddToTempStkHis(TempStkHis tempStkHis)
 {
     base.AddObject("TempStkHis", tempStkHis);
 }
 /// <summary>
 /// Create a new TempStkHis object.
 /// </summary>
 /// <param name="productId">Initial value of ProductId.</param>
 /// <param name="goodQty">Initial value of GoodQty.</param>
 /// <param name="perrorQty">Initial value of PerrorQty.</param>
 /// <param name="predmg">Initial value of Predmg.</param>
 public static TempStkHis CreateTempStkHis(string productId, int goodQty, int perrorQty, long predmg)
 {
     TempStkHis tempStkHis = new TempStkHis();
     tempStkHis.ProductId = productId;
     tempStkHis.GoodQty = goodQty;
     tempStkHis.PerrorQty = perrorQty;
     tempStkHis.Predmg = predmg;
     return tempStkHis;
 }