public static CompVarPlanLevel CreateCompVarPlanLevel(string dataAreaId,
                                                              string compensationLevelId,
                                                              string planId,
                                                              decimal awardPercent,
                                                              int awardUnits,
                                                              decimal awardAmount,
                                                              global::Microsoft.Dynamics.DataEntities.CompVarPlanTable compVarPlanTable,
                                                              global::Microsoft.Dynamics.DataEntities.CompensationLevel compensationLevel)
        {
            CompVarPlanLevel compVarPlanLevel = new CompVarPlanLevel();

            compVarPlanLevel.dataAreaId          = dataAreaId;
            compVarPlanLevel.CompensationLevelId = compensationLevelId;
            compVarPlanLevel.PlanId       = planId;
            compVarPlanLevel.AwardPercent = awardPercent;
            compVarPlanLevel.AwardUnits   = awardUnits;
            compVarPlanLevel.AwardAmount  = awardAmount;
            if ((compVarPlanTable == null))
            {
                throw new global::System.ArgumentNullException("compVarPlanTable");
            }
            compVarPlanLevel.CompVarPlanTable = compVarPlanTable;
            if ((compensationLevel == null))
            {
                throw new global::System.ArgumentNullException("compensationLevel");
            }
            compVarPlanLevel.CompensationLevel = compensationLevel;
            return(compVarPlanLevel);
        }
 partial void OnCompVarPlanTableChanging(global::Microsoft.Dynamics.DataEntities.CompVarPlanTable value);