public static DataManagementDefinitionGroupDetail CreateDataManagementDefinitionGroupDetail(string definitionGroupId,
                                                                                                    string entityName,
                                                                                                    int executionUnit,
                                                                                                    int levelInExecutionUnit,
                                                                                                    int sequenceInLevel,
                                                                                                    global::Microsoft.Dynamics.DataEntities.DataManagementDefinitionGroup definitionGroup)
        {
            DataManagementDefinitionGroupDetail dataManagementDefinitionGroupDetail = new DataManagementDefinitionGroupDetail();

            dataManagementDefinitionGroupDetail.DefinitionGroupId    = definitionGroupId;
            dataManagementDefinitionGroupDetail.EntityName           = entityName;
            dataManagementDefinitionGroupDetail.ExecutionUnit        = executionUnit;
            dataManagementDefinitionGroupDetail.LevelInExecutionUnit = levelInExecutionUnit;
            dataManagementDefinitionGroupDetail.SequenceInLevel      = sequenceInLevel;
            if ((definitionGroup == null))
            {
                throw new global::System.ArgumentNullException("definitionGroup");
            }
            dataManagementDefinitionGroupDetail.DefinitionGroup = definitionGroup;
            return(dataManagementDefinitionGroupDetail);
        }
 partial void OnDefinitionGroupChanging(global::Microsoft.Dynamics.DataEntities.DataManagementDefinitionGroup value);