src/Misc/EFTools/EntityDesignModel/MetadataConverter/MetadataConverterDriver.cs
/// <summary>
///     Convert the EDMX content according to target framework
/// </summary>
/// <returns>converted document or null</returns>
/// <remarks>Virtual to allow mocking.</remarks>
Convert the EDMX content according to target framework
Convert the EDMX content according to target framework
internal virtual XmlDocument Convert(XmlDocument doc, Version targetSchemaVersion)
        {
            var schemaVersion = GetDocumentSchemaVersion(doc);
            var handler = GetConverterHandler(schemaVersion, targetSchemaVersion);
            if (handler != null)
            {
                return handler.HandleConversion(doc);
            }
            else
            {
                return null;
            }
        }
internal virtual XmlDocument Convert ( XmlDocument doc , Version targetSchemaVersion ) { var schemaVersion = GetDocumentSchemaVersion ( doc ) ; var handler = GetConverterHandler ( schemaVersion , targetSchemaVersion ) ; if ( handler != null ) { return handler . HandleConversion ( doc ) ; } else { return null ; } }
Convert the EDMX content according to target framework
Convert the EDMX content according to target framework
converted document or null
converted document or null
doc
XmlDocument
<not_specific>
targetSchemaVersion
Version
<not_specific>
remarks
Virtual to allow mocking.
Virtual to allow mocking .