src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/DomainClasses.cs
/// <summary>
/// Performs operation opposite to MergeRelate - i.e. disconnects a given
/// element from the current one (removes links created by MergeRelate).
/// </summary>
/// <param name="sourceElement">Element to be unmerged/disconnected.</param>
Performs operation opposite to MergeRelate - i.e. disconnects a given
element from the current one (removes links created by MergeRelate).
Performs operation opposite to MergeRelate - i . e . disconnects a given element from the current one ( removes links created by MergeRelate ) .
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
		protected override void MergeDisconnect(DslModeling::ModelElement sourceElement)
		{
			if (sourceElement == null) throw new global::System.ArgumentNullException("sourceElement");
			global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NavigationProperty sourceNavigationProperty1 = sourceElement as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NavigationProperty;
			if (sourceNavigationProperty1 != null)
			{
				foreach (DslModeling::ElementLink link in global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasNavigationProperties.GetLinks((global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType)this, sourceNavigationProperty1))
				{
					link.Delete(global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasNavigationProperties.EntityTypeDomainRoleId, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasNavigationProperties.NavigationPropertyDomainRoleId);
				}
				return;
			}
			global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.Property sourceProperty2 = sourceElement as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.Property;
			if (sourceProperty2 != null)
			{
				foreach (DslModeling::ElementLink link in global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties.GetLinks((global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType)this, sourceProperty2))
				{
					link.Delete(global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties.EntityTypeDomainRoleId, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties.PropertyDomainRoleId);
				}
				return;
			}
			base.MergeDisconnect(sourceElement);
		}
[ global :: System . Diagnostics . CodeAnalysis . SuppressMessage ( " " , " " ) ] protected override void MergeDisconnect ( DslModeling :: ModelElement sourceElement ) { if ( sourceElement == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . NavigationProperty sourceNavigationProperty1 = sourceElement as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . NavigationProperty ; if ( sourceNavigationProperty1 != null ) { foreach ( DslModeling :: ElementLink link in global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasNavigationProperties . GetLinks ( ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType ) this , sourceNavigationProperty1 ) ) { link . Delete ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasNavigationProperties . EntityTypeDomainRoleId , global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasNavigationProperties . NavigationPropertyDomainRoleId ) ; } return ; } global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . Property sourceProperty2 = sourceElement as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . Property ; if ( sourceProperty2 != null ) { foreach ( DslModeling :: ElementLink link in global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasProperties . GetLinks ( ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType ) this , sourceProperty2 ) ) { link . Delete ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasProperties . EntityTypeDomainRoleId , global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasProperties . PropertyDomainRoleId ) ; } return ; } base . MergeDisconnect ( sourceElement ) ; }
Performs operation opposite to MergeRelate - i.e.
Performs operation opposite to MergeRelate - i . e .
// Delete link for path EntityTypeHasNavigationProperties.NavigationProperties // Delete the link, but without possible delete propagation to the element since it's moving to a new location. // Delete link for path EntityTypeHasProperties.Properties // Delete the link, but without possible delete propagation to the element since it's moving to a new location. // Fall through to base class if this class hasn't handled the unmerge.
sourceElement
DslModeling::ModelElement
Element to be unmerged/disconnected.
Element to be unmerged / disconnected .