Interface IMediaBlocksPipelineDocumentMigration
- Assembly
- VisioForge.Core.dll
A single-step schema migration that upgrades a pipeline document from schema version VisioForge.Core.MediaBlocks.Serialization.IMediaBlocksPipelineDocumentMigration.FromVersion to VisioForge.Core.MediaBlocks.Serialization.IMediaBlocksPipelineDocumentMigration.ToVersion. Migrations operate on the raw JSON tree so unknown fields and sections are preserved without the migration needing to know about them.
public interface IMediaBlocksPipelineDocumentMigrationProperties
FromVersion
Gets the schema version this migration accepts.
int FromVersion { get; }Property Value
ToVersion
Gets the schema version this migration produces. Must equal VisioForge.Core.MediaBlocks.Serialization.IMediaBlocksPipelineDocumentMigration.FromVersion + 1.
int ToVersion { get; }Property Value
Methods
Migrate(JsonObject)
Upgrades the document in place.
void Migrate(JsonObject document)Parameters
documentJsonObject-
The document root object. Never null.