src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// This method deserializes all child model elements.
/// </summary>
/// <remarks>
/// The caller will position the reader at the open tag of the first child XML element to deserialized.
/// This method will read as many child elements as it can. It returns under three circumstances:
/// 1) When an unknown child XML element is encountered. In this case, this method will position the reader at the 
///    open tag of the unknown element. This implies that if the first child XML element is unknown, this method 
///    should return immediately and do nothing.
/// 2) When all child XML elemnets are read. In this case, the reader will be positioned at the end tag of the parent element.
/// 3) EOF.
/// </remarks>
/// <param name="serializationContext">Serialization context.</param>
/// <param name="reader">XmlReader to read serialized data from.</param>
/// <param name="element">In-memory EntityDesignerViewModel instance that will get the deserialized data.</param>
This method deserializes all child model elements.
This method deserializes all child model elements .
private static void ReadChildElements(DslModeling::SerializationContext serializationContext, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel element, global::System.Xml.XmlReader reader)
		{
			if (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element)
			{
				if (string.Compare(reader.LocalName, "entityTypes", global::System.StringComparison.CurrentCulture) == 0)
				{
					if (reader.IsEmptyElement)
					{	
						DslModeling::SerializationUtilities.Skip(reader);
					}
					else
					{
						DslModeling::SerializationUtilities.SkipToFirstChild(reader);  
						ReadEntityDesignerViewModelHasEntityTypesInstances(serializationContext, element, reader);
						DslModeling::SerializationUtilities.Skip(reader);  
					}
				}
			}
		}
private static void ReadChildElements ( DslModeling :: SerializationContext serializationContext , global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityDesignerViewModel element , global :: System . Xml . XmlReader reader ) { if ( ! serializationContext . Result . Failed && ! reader . EOF && reader . NodeType == global :: System . Xml . XmlNodeType . Element ) { if ( string . Compare ( reader . LocalName , " " , global :: System . StringComparison . CurrentCulture ) == 0 ) { if ( reader . IsEmptyElement ) { DslModeling :: SerializationUtilities . Skip ( reader ) ; } else { DslModeling :: SerializationUtilities . SkipToFirstChild ( reader ) ; ReadEntityDesignerViewModelHasEntityTypesInstances ( serializationContext , element , reader ) ; DslModeling :: SerializationUtilities . Skip ( reader ) ; } } } }
This method deserializes all child model elements.
This method deserializes all child model elements .
// No instance of this relationship, just skip // Skip the open tag of <entityTypes> // Skip the close tag of </entityTypes>
serializationContext
DslModeling::SerializationContext
None
element
global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel
In-memory EntityDesignerViewModel instance that will get the deserialized data.
In - memory EntityDesignerViewModel instance that will get the deserialized data .
reader
global::System.Xml.XmlReader
XmlReader to read serialized data from.
XmlReader to read serialized data from .
remarks
The caller will position the reader at the open tag of the first child XML element to deserialized.
This method will read as many child elements as it can. It returns under three circumstances:
1) When an unknown child XML element is encountered. In this case, this method will position the reader at the
open tag of the unknown element. This implies that if the first child XML element is unknown, this method
should return immediately and do nothing.
2) When all child XML elemnets are read. In this case, the reader will be positioned at the end tag of the parent element.
The caller will position the reader at the open tag of the first child XML element to deserialized . This method will read as many child elements as it can . It returns under three circumstances : 1 ) When an unknown child XML element is encountered . In this case this method will position the reader at the open tag of the unknown element . This implies that if the first child XML element is unknown this method should return immediately and do nothing . 2 ) When all child XML elemnets are read . In this case the reader will be positioned at the end tag of the parent element .