src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/DomainRelationships.cs
/// <summary>
/// Get the EntityDesignerViewModelHasEntityTypes link to a EntityType.
/// </summary>
Get the EntityDesignerViewModelHasEntityTypes link to a EntityType.
Get the EntityDesignerViewModelHasEntityTypes link to a EntityType .
[global::System.Diagnostics.DebuggerStepThrough]
		[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011")]
		internal static global::Microsoft.Data.Entity.Design.EntityDesigner.EntityDesignerViewModelHasEntityTypes GetLinkToEntityDesignerViewModel (global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType entityTypeInstance)
		{
			global::System.Collections.Generic.IList<global::Microsoft.Data.Entity.Design.EntityDesigner.EntityDesignerViewModelHasEntityTypes> links = DslModeling::DomainRoleInfo.GetElementLinks<global::Microsoft.Data.Entity.Design.EntityDesigner.EntityDesignerViewModelHasEntityTypes>(entityTypeInstance, global::Microsoft.Data.Entity.Design.EntityDesigner.EntityDesignerViewModelHasEntityTypes.EntityTypeDomainRoleId);
			global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of EntityType not obeyed.");
			if ( links.Count == 0 )
			{
				return null;
			}
			else
			{
				return links[0];
			}
		}
[ global :: System . Diagnostics . DebuggerStepThrough ] [ global :: System . Diagnostics . CodeAnalysis . SuppressMessage ( " " , " " ) ] internal static global :: Microsoft . Data . Entity . Design . EntityDesigner . EntityDesignerViewModelHasEntityTypes GetLinkToEntityDesignerViewModel ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType entityTypeInstance ) { global :: System . Collections . Generic . IList < global :: Microsoft . Data . Entity . Design . EntityDesigner . EntityDesignerViewModelHasEntityTypes > links = DslModeling :: DomainRoleInfo . GetElementLinks < global :: Microsoft . Data . Entity . Design . EntityDesigner . EntityDesignerViewModelHasEntityTypes > ( entityTypeInstance , global :: Microsoft . Data . Entity . Design . EntityDesigner . EntityDesignerViewModelHasEntityTypes . EntityTypeDomainRoleId ) ; global :: System . Diagnostics . Debug . Assert ( links . Count <= 1 , " " ) ; if ( links . Count == 0 ) { return null ; } else { return links [ 0 ] ; } }
Get the EntityDesignerViewModelHasEntityTypes link to a EntityType.
Get the EntityDesignerViewModelHasEntityTypes link to a EntityType .
entityTypeInstance
global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType