src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// This methods deserializes nested XML elements inside the passed-in element.
/// </summary>
/// <remarks>
/// The caller will guarantee that the current element does have nested XML elements, and the call will position the 
/// reader at the open tag of the first child XML element.
/// This method will read as many child XML 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="element">In-memory EntityType instance that will get the deserialized data.</param>
/// <param name="reader">XmlReader to read serialized data from.</param>
This methods deserializes nested XML elements inside the passed-in element.
This methods deserializes nested XML elements inside the passed - in element .
protected override void ReadElements(DslModeling::SerializationContext serializationContext, DslModeling::ModelElement element, global::System.Xml.XmlReader reader)
		{
			base.ReadElements(serializationContext, element, reader);
			global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType instanceOfEntityType = element as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType;
			global::System.Diagnostics.Debug.Assert(instanceOfEntityType != null, "Expecting an instance of EntityType!");
			if (!serializationContext.Result.Failed && !reader.EOF && reader.NodeType == global::System.Xml.XmlNodeType.Element)
				ReadChildElements(serializationContext, instanceOfEntityType, reader);
		}
protected override void ReadElements ( DslModeling :: SerializationContext serializationContext , DslModeling :: ModelElement element , global :: System . Xml . XmlReader reader ) { base . ReadElements ( serializationContext , element , reader ) ; global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType instanceOfEntityType = element as global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityType ; global :: System . Diagnostics . Debug . Assert ( instanceOfEntityType != null , " " ) ; if ( ! serializationContext . Result . Failed && ! reader . EOF && reader . NodeType == global :: System . Xml . XmlNodeType . Element ) ReadChildElements ( serializationContext , instanceOfEntityType , reader ) ; }
This methods deserializes nested XML elements inside the passed-in element.
This methods deserializes nested XML elements inside the passed - in element .
// Always call the base class so any extensions are deserialized // Read child model elements (which are always serialized as nested XML elements).
serializationContext
DslModeling::SerializationContext
None
element
DslModeling::ModelElement
In-memory EntityType instance that will get the deserialized data.
In - memory EntityType 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 guarantee that the current element does have nested XML elements, and the call will position the
reader at the open tag of the first child XML element.
This method will read as many child XML 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 guarantee that the current element does have nested XML elements and the call will position the reader at the open tag of the first child XML element . This method will read as many child XML 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 .