src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// A domain class can be monikerized in different ways: standard /qualifier/key mechanism, custom moniker, or element ID. If the domain class is serialized
/// using standard /qualifier/key mechanism, this method returns the qualifier of the moniker; if the domain class uses other ways for monikerization, this method
/// returns empty string.
/// </summary>
/// <param name="directory">Directory to look up serializer based on model element type.</param>
/// <param name="element">ComplexProperty instance to get moniker qualifier from.</param>
/// <returns>
/// Value of this element's moniker qualifier property, if it has one, or the value of the container's moniker qualifier property. Or empty string if this
/// element is not monikerized using standard /qualifier/key mechanism.
/// </returns>
A domain class can be monikerized in different ways: standard /qualifier/key mechanism, custom moniker, or element ID. If the domain class is serialized
using standard /qualifier/key mechanism, this method returns the qualifier of the moniker; if the domain class uses other ways for monikerization, this method
returns empty string.
A domain class can be monikerized in different ways : standard / qualifier / key mechanism custom moniker or element ID . If the domain class is serialized using standard / qualifier / key mechanism this method returns the qualifier of the moniker ; if the domain class uses other ways for monikerization this method returns empty string .
public override string GetMonikerQualifier(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.ComplexProperty instance = element as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.ComplexProperty;
			global::System.Diagnostics.Debug.Assert(instance != null, "Expecting an instance of global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.ComplexProperty!");
			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.GetMonikerQualifier(directory, container);
			}
			else
			{
				return string.Empty;
			}
		}
public override string GetMonikerQualifier ( 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 . ComplexProperty instance = element as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . ComplexProperty ; 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 . GetMonikerQualifier ( directory , container ) ; } else { return string . Empty ; } }
A domain class can be monikerized in different ways: standard /qualifier/key mechanism, custom moniker, or element ID.
A domain class can be monikerized in different ways : standard / qualifier / key mechanism custom moniker or element ID .
Value of this element's moniker qualifier property, if it has one, or the value of the container's moniker qualifier property. Or empty string if this
element is not monikerized using standard /qualifier/key mechanism.
Value of this element ' s moniker qualifier property if it has one or the value of the container ' s moniker qualifier property . Or empty string if this element is not monikerized using standard / qualifier / key mechanism .
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
ComplexProperty instance to get moniker qualifier from.
ComplexProperty instance to get moniker qualifier from .