partial void OnCompensationPayPerformanceAllocationChanging(global::Microsoft.Dynamics.DataEntities.CompensationPayPerformanceAllocation value);
        public static CompensationPayPerformanceAllocationLine CreateCompensationPayPerformanceAllocationLine(string dataAreaId,
                                                                                                              string ratingLevelId,
                                                                                                              string allocationId,
                                                                                                              string compPerfRatingId,
                                                                                                              string ratingModelId,
                                                                                                              decimal perfFactorPercent,
                                                                                                              global::Microsoft.Dynamics.DataEntities.CompensationPayPerformanceAllocation compensationPayPerformanceAllocation)
        {
            CompensationPayPerformanceAllocationLine compensationPayPerformanceAllocationLine = new CompensationPayPerformanceAllocationLine();

            compensationPayPerformanceAllocationLine.dataAreaId        = dataAreaId;
            compensationPayPerformanceAllocationLine.RatingLevelId     = ratingLevelId;
            compensationPayPerformanceAllocationLine.AllocationId      = allocationId;
            compensationPayPerformanceAllocationLine.CompPerfRatingId  = compPerfRatingId;
            compensationPayPerformanceAllocationLine.RatingModelId     = ratingModelId;
            compensationPayPerformanceAllocationLine.PerfFactorPercent = perfFactorPercent;
            if ((compensationPayPerformanceAllocation == null))
            {
                throw new global::System.ArgumentNullException("compensationPayPerformanceAllocation");
            }
            compensationPayPerformanceAllocationLine.CompensationPayPerformanceAllocation = compensationPayPerformanceAllocation;
            return(compensationPayPerformanceAllocationLine);
        }