public static DataManagementTemplateSourceDependency CreateDataManagementTemplateSourceDependency(string templateId, string sourceEntity, string dependentOnEntity, string relationName, global::Microsoft.Dynamics.DataEntities.DataManagementTemplateSource templateSource) { DataManagementTemplateSourceDependency dataManagementTemplateSourceDependency = new DataManagementTemplateSourceDependency(); dataManagementTemplateSourceDependency.TemplateId = templateId; dataManagementTemplateSourceDependency.SourceEntity = sourceEntity; dataManagementTemplateSourceDependency.DependentOnEntity = dependentOnEntity; dataManagementTemplateSourceDependency.RelationName = relationName; if ((templateSource == null)) { throw new global::System.ArgumentNullException("templateSource"); } dataManagementTemplateSourceDependency.TemplateSource = templateSource; return(dataManagementTemplateSourceDependency); }
partial void OnTemplateSourceChanging(global::Microsoft.Dynamics.DataEntities.DataManagementTemplateSource value);