src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// This method calculates a moniker to a given EntityTypeHasProperties instance.
/// </summary>
/// <param name="directory">Directory to look up serializer based on model element type.</param>
/// <param name="element">EntityTypeHasProperties instance to calculate qualified name for.</param>
/// <returns>A fully qualified string moniker to the EntityTypeHasProperties instance.</returns>
This method calculates a moniker to a given EntityTypeHasProperties instance.
This method calculates a moniker to a given EntityTypeHasProperties instance .
public override string CalculateQualifiedName(DslModeling::DomainXmlSerializerDirectory directory, DslModeling::ModelElement element)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert (directory != null);
			if (directory == null)
				throw new global::System.ArgumentNullException ("directory");
			global::System.Diagnostics.Debug.Assert(element != null);
			if (element == null)
				throw new global::System.ArgumentNullException("element");
			#endregion	
			global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties instance = element as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties;
			global::System.Diagnostics.Debug.Assert(instance != null, "Expecting an instance of global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeHasProperties!");
			DslModeling::ModelElement container = instance.EntityType;
			if(container != null)
			{
				DslModeling::DomainClassXmlSerializer containerSerializer = directory.GetSerializer(container.GetDomainClass().Id);
				global::System.Diagnostics.Debug.Assert(containerSerializer != null, "Cannot find serializer for " + container.GetDomainClass().Name + "!");
				return containerSerializer.CalculateQualifiedName(directory, container);
			}
			else
			{
				return string.Empty;
			}
		}
public override string CalculateQualifiedName ( DslModeling :: DomainXmlSerializerDirectory directory , DslModeling :: ModelElement element ) { region  Check Parameters global :: System . Diagnostics . Debug . Assert ( directory != null ) ; if ( directory == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( element != null ) ; if ( element == null ) throw new global :: System . ArgumentNullException ( " " ) ; endregion global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasProperties instance = element as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityTypeHasProperties ; global :: System . Diagnostics . Debug . Assert ( instance != null , " " ) ; DslModeling :: ModelElement container = instance . EntityType ; if ( container != null ) { DslModeling :: DomainClassXmlSerializer containerSerializer = directory . GetSerializer ( container . GetDomainClass ( ) . Id ) ; global :: System . Diagnostics . Debug . Assert ( containerSerializer != null , " " + container . GetDomainClass ( ) . Name + " " ) ; return containerSerializer . CalculateQualifiedName ( directory , container ) ; } else { return string . Empty ; } }
This method calculates a moniker to a given EntityTypeHasProperties instance.
This method calculates a moniker to a given EntityTypeHasProperties instance .
A fully qualified string moniker to the EntityTypeHasProperties instance.
A fully qualified string moniker to the EntityTypeHasProperties instance .
directory
DslModeling::DomainXmlSerializerDirectory
Directory to look up serializer based on model element type.
Directory to look up serializer based on model element type .
element
DslModeling::ModelElement
EntityTypeHasProperties instance to calculate qualified name for.
EntityTypeHasProperties instance to calculate qualified name for .