/// <summary>
 /// Deprecated Method for adding a new object to the DeptPoDets EntitySet.
 /// </summary>
 public void AddToDeptPoDets(DeptPoDet deptPoDet)
 {
     base.AddObject("DeptPoDets", deptPoDet);
 }
 /// <summary>
 /// Create a new DeptPoDet 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="productMasterId">Initial value of ProductMasterId.</param>
 public static DeptPoDet CreateDeptPoDet(string purchaseOrderId, long purchaseOrderDetailId, long departmentId, string productMasterId)
 {
     DeptPoDet deptPoDet = new DeptPoDet();
     deptPoDet.PurchaseOrderId = purchaseOrderId;
     deptPoDet.PurchaseOrderDetailId = purchaseOrderDetailId;
     deptPoDet.DepartmentId = departmentId;
     deptPoDet.ProductMasterId = productMasterId;
     return deptPoDet;
 }