/// <summary>
 /// Deprecated Method for adding a new object to the DeptRetPos EntitySet.
 /// </summary>
 public void AddToDeptRetPos(DeptRetPo deptRetPo)
 {
     base.AddObject("DeptRetPos", deptRetPo);
 }
 /// <summary>
 /// Create a new DeptRetPo object.
 /// </summary>
 /// <param name="purchaseOrderId">Initial value of PurchaseOrderId.</param>
 /// <param name="purchaseOrderDetailId">Initial value of PurchaseOrderDetailId.</param>
 /// <param name="departmentId">Initial value of DepartmentId.</param>
 /// <param name="createDate">Initial value of CreateDate.</param>
 public static DeptRetPo CreateDeptRetPo(string purchaseOrderId, long purchaseOrderDetailId, long departmentId, global::System.DateTime createDate)
 {
     DeptRetPo deptRetPo = new DeptRetPo();
     deptRetPo.PurchaseOrderId = purchaseOrderId;
     deptRetPo.PurchaseOrderDetailId = purchaseOrderDetailId;
     deptRetPo.DepartmentId = departmentId;
     deptRetPo.CreateDate = createDate;
     return deptRetPo;
 }