src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// Public WriteMoniker() method that writes a monikerized EntityType instance into XML.
/// </summary>
/// <param name="serializationContext">Serialization context.</param>
/// <param name="element">EntityType instance to be monikerized.</param>
/// <param name="writer">XmlWriter to write serialized data to.</param>
/// <param name="sourceRolePlayer">Source element that references the EntityType instance being monikerized.</param>
/// <param name="relSerializer">Serializer that handles the relationship connecting the source element to the EntityType instance being monikerized.</param>
Public WriteMoniker() method that writes a monikerized EntityType instance into XML.
Public WriteMoniker () method that writes a monikerized EntityType instance into XML .
public override void WriteMoniker(DslModeling::SerializationContext serializationContext, DslModeling::ModelElement element, global::System.Xml.XmlWriter writer, DslModeling::ModelElement sourceRolePlayer, DslModeling::DomainRelationshipXmlSerializer relSerializer)
		{
			#region Check Parameters
			global::System.Diagnostics.Debug.Assert (serializationContext != null);
			if (serializationContext == null)
				throw new global::System.ArgumentNullException ("serializationContext");
			global::System.Diagnostics.Debug.Assert (element != null);
			if (element == null)
				throw new global::System.ArgumentNullException ("element");
			global::System.Diagnostics.Debug.Assert (writer != null);
			if (writer == null)
				throw new global::System.ArgumentNullException ("writer");
			global::System.Diagnostics.Debug.Assert (sourceRolePlayer != null);
			if (sourceRolePlayer == null)
				throw new global::System.ArgumentNullException ("sourceRolePlayer");
			global::System.Diagnostics.Debug.Assert (relSerializer != null);
			if (relSerializer == null)
				throw new global::System.ArgumentNullException ("relSerializer");
			#endregion
			string monikerString = this.CalculateQualifiedName(serializationContext.Directory, element);
			global::System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(monikerString));
			writer.WriteStartElement(this.MonikerTagName);
			MicrosoftDataEntityDesignSerializationHelper.Instance.WriteAttributeString(serializationContext, element, writer, this.MonikerAttributeName, monikerString);
			writer.WriteEndElement();
		}
public override void WriteMoniker ( DslModeling :: SerializationContext serializationContext , DslModeling :: ModelElement element , global :: System . Xml . XmlWriter writer , DslModeling :: ModelElement sourceRolePlayer , DslModeling :: DomainRelationshipXmlSerializer relSerializer ) { region  Check Parameters global :: System . Diagnostics . Debug . Assert ( serializationContext != null ) ; if ( serializationContext == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( element != null ) ; if ( element == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( writer != null ) ; if ( writer == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( sourceRolePlayer != null ) ; if ( sourceRolePlayer == null ) throw new global :: System . ArgumentNullException ( " " ) ; global :: System . Diagnostics . Debug . Assert ( relSerializer != null ) ; if ( relSerializer == null ) throw new global :: System . ArgumentNullException ( " " ) ; endregion string monikerString = this . CalculateQualifiedName ( serializationContext . Directory , element ) ; global :: System . Diagnostics . Debug . Assert ( ! string . IsNullOrEmpty ( monikerString ) ) ; writer . WriteStartElement ( this . MonikerTagName ) ; MicrosoftDataEntityDesignSerializationHelper . Instance . WriteAttributeString ( serializationContext , element , writer , this . MonikerAttributeName , monikerString ) ; writer . WriteEndElement ( ) ; }
Public WriteMoniker() method that writes a monikerized EntityType instance into XML.
Public WriteMoniker () method that writes a monikerized EntityType instance into XML .
serializationContext
DslModeling::SerializationContext
None
element
DslModeling::ModelElement
EntityType instance to be monikerized.
EntityType instance to be monikerized .
writer
global::System.Xml.XmlWriter
XmlWriter to write serialized data to.
XmlWriter to write serialized data to .
sourceRolePlayer
DslModeling::ModelElement
Source element that references the EntityType instance being monikerized.
Source element that references the EntityType instance being monikerized .
relSerializer
DslModeling::DomainRelationshipXmlSerializer
Serializer that handles the relationship connecting the source element to the EntityType instance being monikerized.
Serializer that handles the relationship connecting the source element to the EntityType instance being monikerized .