private MetadataConverterHandler CreateConverterHandler(Version sourceSchemaVersion, Version targetSchemaVersion) { if (this == _instance) { var namespaceConverter = new NamespaceConverterHandler(sourceSchemaVersion, targetSchemaVersion); var versionConverter = new VersionConverterHandler(targetSchemaVersion); var useStrongSpatialTypesConverter = new UseStrongSpatialTypesHandler(targetSchemaVersion); namespaceConverter.SetNextHandler(versionConverter); versionConverter.SetNextHandler(useStrongSpatialTypesConverter); return(namespaceConverter); } return(null); }
private MetadataConverterHandler CreateConverterHandler(Version sourceSchemaVersion, Version targetSchemaVersion) { if (this == _instance) { var namespaceConverter = new NamespaceConverterHandler(sourceSchemaVersion, targetSchemaVersion); var versionConverter = new VersionConverterHandler(targetSchemaVersion); var useStrongSpatialTypesConverter = new UseStrongSpatialTypesHandler(targetSchemaVersion); namespaceConverter.SetNextHandler(versionConverter); versionConverter.SetNextHandler(useStrongSpatialTypesConverter); return namespaceConverter; } return null; }