/// <summary>
 /// Create a new DeptStkInHis object.
 /// </summary>
 /// <param name="stockInId">Initial value of StockInId.</param>
 /// <param name="sourceDepartmentid">Initial value of SourceDepartmentid.</param>
 /// <param name="stockOutId">Initial value of StockOutId.</param>
 /// <param name="destDepartmentId">Initial value of DestDepartmentId.</param>
 public static DeptStkInHis CreateDeptStkInHis(string stockInId, long sourceDepartmentid, long stockOutId, long destDepartmentId)
 {
     DeptStkInHis deptStkInHis = new DeptStkInHis();
     deptStkInHis.StockInId = stockInId;
     deptStkInHis.SourceDepartmentid = sourceDepartmentid;
     deptStkInHis.StockOutId = stockOutId;
     deptStkInHis.DestDepartmentId = destDepartmentId;
     return deptStkInHis;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the DeptStkInHis EntitySet.
 /// </summary>
 public void AddToDeptStkInHis(DeptStkInHis deptStkInHis)
 {
     base.AddObject("DeptStkInHis", deptStkInHis);
 }