src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/SerializationHelper.cs
/// <summary>
/// Attempts to resolve the supplied schema namespace
/// </summary>
/// <remarks>If the schema can be resolved it is added to the supplied schema set. Otherwise, a 
/// warning will be written to serializationContext.
/// </remarks>
/// <returns>A flag indicating whether the schema was resolved or not</returns>
Attempts to resolve the supplied schema namespace
Attempts to resolve the supplied schema namespace
protected static bool ResolveSchema(string targetNamespace, global::System.Xml.Schema.XmlSchemaSet schemaSet, DslModeling::ISchemaResolver schemaResolver, global::System.Xml.XmlReader reader, DslModeling::SerializationContext serializationContext)
		{
			global::System.Collections.Generic.IList<string> schemas = schemaResolver.ResolveSchema(targetNamespace);
			if (schemas != null && schemas.Count > 0)
			{
				if (schemas.Count > 1)
				{
					MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.AmbiguousSchema(serializationContext, reader, targetNamespace, schemas[0]);
				}
				schemaSet.Add(targetNamespace, schemas[0]);
				return true;
			}
			MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages.NoSchema(serializationContext, reader, targetNamespace);
			return false;
		}
protected static bool ResolveSchema ( string targetNamespace , global :: System . Xml . Schema . XmlSchemaSet schemaSet , DslModeling :: ISchemaResolver schemaResolver , global :: System . Xml . XmlReader reader , DslModeling :: SerializationContext serializationContext ) { global :: System . Collections . Generic . IList < string > schemas = schemaResolver . ResolveSchema ( targetNamespace ) ; if ( schemas != null && schemas . Count > 0 ) { if ( schemas . Count > 1 ) { MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . AmbiguousSchema ( serializationContext , reader , targetNamespace , schemas [ 0 ] ) ; } schemaSet . Add ( targetNamespace , schemas [ 0 ] ) ; return true ; } MicrosoftDataEntityDesignSerializationBehaviorSerializationMessages . NoSchema ( serializationContext , reader , targetNamespace ) ; return false ; }
Attempts to resolve the supplied schema namespace
Attempts to resolve the supplied schema namespace
A flag indicating whether the schema was resolved or not
A flag indicating whether the schema was resolved or not
targetNamespace
string
schemaSet
global::System.Xml.Schema.XmlSchemaSet
schemaResolver
DslModeling::ISchemaResolver
reader
global::System.Xml.XmlReader
serializationContext
DslModeling::SerializationContext
remarks
If the schema can be resolved it is added to the supplied schema set. Otherwise, a
warning will be written to serializationContext.
If the schema can be resolved it is added to the supplied schema set . Otherwise a warning will be written to serializationContext .