src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/SerializationHelper.cs
/// <summary>
/// Write any additional XML element data for the specified element
/// </summary>
/// <param name="serializationContext">The current serialization context instance.</param>
/// <param name="element">The element whose attributes have just been written.</param>
/// <param name="writer">XmlWriter to write serialized data to.</param>
/// <remarks>The additional data should be written as a series of one or more
/// XML elements.</remarks>
Write any additional XML element data for the specified element
Write any additional XML element data for the specified element
internal protected virtual void WriteAdditionalElementData(DslModeling::SerializationContext serializationContext, DslModeling::ModelElement element, global::System.Xml.XmlWriter writer)
		{
			if (element is global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel)
			{
				global::System.Collections.ObjectModel.ReadOnlyCollection<DslModeling::ModelElement> allExtensionElements = element.Partition.ElementDirectory.FindElements(DslModeling::ExtensionElement.DomainClassId, true);
				global::System.Collections.Generic.IEnumerable<DslModeling::ExtensionElement> nonEmbeddedExtensionsElements = allExtensionElements.Where(e => DslModeling::DomainClassInfo.FindEmbeddingElementLink(e) == null).OfType<DslModeling::ExtensionElement>();
				DslModeling::SerializationUtilities.WriteExtensions(serializationContext, writer, nonEmbeddedExtensionsElements);
			}
		}
internal protected virtual void WriteAdditionalElementData ( DslModeling :: SerializationContext serializationContext , DslModeling :: ModelElement element , global :: System . Xml . XmlWriter writer ) { if ( element is global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityDesignerViewModel ) { global :: System . Collections . ObjectModel . ReadOnlyCollection < DslModeling :: ModelElement > allExtensionElements = element . Partition . ElementDirectory . FindElements ( DslModeling :: ExtensionElement . DomainClassId , true ) ; global :: System . Collections . Generic . IEnumerable < DslModeling :: ExtensionElement > nonEmbeddedExtensionsElements = allExtensionElements . Where ( e => DslModeling :: DomainClassInfo . FindEmbeddingElementLink ( e ) == null ) . OfType < DslModeling :: ExtensionElement > ( ) ; DslModeling :: SerializationUtilities . WriteExtensions ( serializationContext , writer , nonEmbeddedExtensionsElements ) ; } }
Write any additional XML element data for the specified element
Write any additional XML element data for the specified element
// Build a list of extension elements to serialize
serializationContext
DslModeling::SerializationContext
The current serialization context instance.
The current serialization context instance .
element
DslModeling::ModelElement
The element whose attributes have just been written.
The element whose attributes have just been written .
writer
global::System.Xml.XmlWriter
XmlWriter to write serialized data to.
XmlWriter to write serialized data to .
remarks
The additional data should be written as a series of one or more
XML elements.
The additional data should be written as a series of one or more XML elements .