src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/Serializer.cs
/// <summary>
/// This method creates an instance of EntityDesignerViewModel based on the tag currently pointed by the reader. The reader is guaranteed (by the caller)
/// to be pointed at a serialized instance of EntityDesignerViewModel.
/// </summary>
/// <remarks>
/// The caller will guarantee that the reader is positioned at open XML tag of the ModelRoot instance being read. This method should
/// not move the reader; the reader should remain at the same position when this method returns.
/// </remarks>
/// <param name="serializationContext">Serialization context.</param>
/// <param name="reader">XmlReader to read serialized data from.</param>
/// <param name="partition">Partition in which new EntityDesignerViewModel instance should be created.</param>	
/// <returns>Created EntityDesignerViewModel instance.</returns>
This method creates an instance of EntityDesignerViewModel based on the tag currently pointed by the reader. The reader is guaranteed (by the caller)
to be pointed at a serialized instance of EntityDesignerViewModel.
This method creates an instance of EntityDesignerViewModel based on the tag currently pointed by the reader . The reader is guaranteed ( by the caller ) to be pointed at a serialized instance of EntityDesignerViewModel .
protected override DslModeling::ModelElement CreateInstance(DslModeling::SerializationContext serializationContext, global::System.Xml.XmlReader reader, DslModeling::Partition partition)
		{
			string idStr = reader.GetAttribute ("Id");
			try
			{
				global::System.Guid id;
				if (string.IsNullOrEmpty(idStr))
				{	
					id = global::System.Guid.NewGuid();
					MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.MissingId(serializationContext, reader, id);
				}
				else
				{
					id = new global::System.Guid (idStr);
				}
				return new global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel(partition, new DslModeling::PropertyAssignment(DslModeling::ElementFactory.IdPropertyAssignment, id));
			}
			catch (global::System.ArgumentNullException )
			{	
				MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.InvalidPropertyValue(serializationContext, reader, "Id", typeof(global::System.Guid), idStr);
			}
			catch (global::System.FormatException )
			{
				MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.InvalidPropertyValue(serializationContext, reader, "Id", typeof(global::System.Guid), idStr);
			}
			catch (global::System.OverflowException )
			{
				MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.InvalidPropertyValue(serializationContext, reader, "Id", typeof(global::System.Guid), idStr);
			}
			return null;
		}
protected override DslModeling :: ModelElement CreateInstance ( DslModeling :: SerializationContext serializationContext , global :: System . Xml . XmlReader reader , DslModeling :: Partition partition ) { string idStr = reader . GetAttribute ( " " ) ; try { global :: System . Guid id ; if ( string . IsNullOrEmpty ( idStr ) ) { id = global :: System . Guid . NewGuid ( ) ; MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . MissingId ( serializationContext , reader , id ) ; } else { id = new global :: System . Guid ( idStr ) ; } return new global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . EntityDesignerViewModel ( partition , new DslModeling :: PropertyAssignment ( DslModeling :: ElementFactory . IdPropertyAssignment , id ) ) ; } catch ( global :: System . ArgumentNullException ) { MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . InvalidPropertyValue ( serializationContext , reader , " " , typeof ( global :: System . Guid ) , idStr ) ; } catch ( global :: System . FormatException ) { MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . InvalidPropertyValue ( serializationContext , reader , " " , typeof ( global :: System . Guid ) , idStr ) ; } catch ( global :: System . OverflowException ) { MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . InvalidPropertyValue ( serializationContext , reader , " " , typeof ( global :: System . Guid ) , idStr ) ; } return null ; }
This method creates an instance of EntityDesignerViewModel based on the tag currently pointed by the reader.
This method creates an instance of EntityDesignerViewModel based on the tag currently pointed by the reader .
// Create a default Id. /* anEx */ /* fEx */ /* ofEx */
Created EntityDesignerViewModel instance.
Created EntityDesignerViewModel instance .
serializationContext
DslModeling::SerializationContext
None
reader
global::System.Xml.XmlReader
XmlReader to read serialized data from.
XmlReader to read serialized data from .
partition
DslModeling::Partition
Partition in which new EntityDesignerViewModel instance should be created.
Partition in which new EntityDesignerViewModel instance should be created .
remarks
The caller will guarantee that the reader is positioned at open XML tag of the ModelRoot instance being read. This method should
not move the reader; the reader should remain at the same position when this method returns.
The caller will guarantee that the reader is positioned at open XML tag of the ModelRoot instance being read . This method should not move the reader ; the reader should remain at the same position when this method returns .