src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// Write all properties that need to be serialized as XML attributes.
/// </summary>
/// <param name="serializationContext">Serialization context.</param>
/// <param name="element">EntityDesignerViewModel instance to be serialized.</param>
/// <param name="writer">XmlWriter to write serialized data to.</param> 
Write all properties that need to be serialized as XML attributes.
Write all properties that need to be serialized as XML attributes .
protected override void WritePropertiesAsAttributes(DslModeling::SerializationContext serializationContext, DslModeling::ModelElement element, global::System.Xml.XmlWriter writer)
		{
			base.WritePropertiesAsAttributes(serializationContext, element, writer);
			global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel instanceOfEntityDesignerViewModel = element as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel;
			global::System.Diagnostics.Debug.Assert(instanceOfEntityDesignerViewModel != null, "Expecting an instance of EntityDesignerViewModel");
			if (!serializationContext.Result.Failed)
			{
				global::System.String propValue = instanceOfEntityDesignerViewModel.Namespace;
				if (!serializationContext.Result.Failed)
				{
					if (!string.IsNullOrEmpty(propValue))
						MicrosoftDataEntityDesignSerializationHelper.Instance.WriteAttributeString(serializationContext, element, writer, "namespace", propValue);
				}
			}
		}
protected override void WritePropertiesAsAttributes ( DslModeling :: SerializationContext serializationContext , DslModeling :: ModelElement element , global :: System . Xml . XmlWriter writer ) { base . WritePropertiesAsAttributes ( serializationContext , element , writer ) ; global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityDesignerViewModel instanceOfEntityDesignerViewModel = element as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityDesignerViewModel ; global :: System . Diagnostics . Debug . Assert ( instanceOfEntityDesignerViewModel != null , " " ) ; if ( ! serializationContext . Result . Failed ) { global :: System . String propValue = instanceOfEntityDesignerViewModel . Namespace ; if ( ! serializationContext . Result . Failed ) { if ( ! string . IsNullOrEmpty ( propValue ) ) MicrosoftDataEntityDesignSerializationHelper . Instance . WriteAttributeString ( serializationContext , element , writer , " " , propValue ) ; } } }
Write all properties that need to be serialized as XML attributes.
Write all properties that need to be serialized as XML attributes .
// Always call the base class so any extensions are serialized // Namespace
serializationContext
DslModeling::SerializationContext
None
element
DslModeling::ModelElement
EntityDesignerViewModel instance to be serialized.
EntityDesignerViewModel instance to be serialized .
writer
global::System.Xml.XmlWriter
XmlWriter to write serialized data to.
XmlWriter to write serialized data to .