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
targetSchemaVersion
Version
remarks
Virtual to allow mocking.
Virtual to allow mocking .