/// <summary>
 /// Create a new DeptPoPromo object.
 /// </summary>
 /// <param name="purchaseOrderId">Initial value of PurchaseOrderId.</param>
 /// <param name="purchaseOrderDetailId">Initial value of PurchaseOrderDetailId.</param>
 /// <param name="id">Initial value of Id.</param>
 /// <param name="departmentId">Initial value of DepartmentId.</param>
 /// <param name="giftDepartmentId">Initial value of GiftDepartmentId.</param>
 public static DeptPoPromo CreateDeptPoPromo(string purchaseOrderId, long purchaseOrderDetailId, long id, long departmentId, long giftDepartmentId)
 {
     DeptPoPromo deptPoPromo = new DeptPoPromo();
     deptPoPromo.PurchaseOrderId = purchaseOrderId;
     deptPoPromo.PurchaseOrderDetailId = purchaseOrderDetailId;
     deptPoPromo.Id = id;
     deptPoPromo.DepartmentId = departmentId;
     deptPoPromo.GiftDepartmentId = giftDepartmentId;
     return deptPoPromo;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the DeptPoPromos EntitySet.
 /// </summary>
 public void AddToDeptPoPromos(DeptPoPromo deptPoPromo)
 {
     base.AddObject("DeptPoPromos", deptPoPromo);
 }