/// <summary> /// Deprecated Method for adding a new object to the HR_Emp_LeaveRequest EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHR_Emp_LeaveRequest(HR_Emp_LeaveRequest hR_Emp_LeaveRequest) { base.AddObject("HR_Emp_LeaveRequest", hR_Emp_LeaveRequest); }
/// <summary> /// Create a new HR_Emp_LeaveRequest object. /// </summary> /// <param name="leaveRequestID">Initial value of the LeaveRequestID property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> /// <param name="totalNoLeavesRequested">Initial value of the TotalNoLeavesRequested property.</param> public static HR_Emp_LeaveRequest CreateHR_Emp_LeaveRequest(global::System.Int32 leaveRequestID, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 totalNoLeavesRequested) { HR_Emp_LeaveRequest hR_Emp_LeaveRequest = new HR_Emp_LeaveRequest(); hR_Emp_LeaveRequest.LeaveRequestID = leaveRequestID; hR_Emp_LeaveRequest.StartDate = startDate; hR_Emp_LeaveRequest.EndDate = endDate; hR_Emp_LeaveRequest.TotalNoLeavesRequested = totalNoLeavesRequested; return hR_Emp_LeaveRequest; }