Table of Contents

Interface IMediaBlocksPipelineDocumentMigration

Namespace
VisioForge.Core.MediaBlocks.Serialization
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 IMediaBlocksPipelineDocumentMigration

Properties

FromVersion

Gets the schema version this migration accepts.

int FromVersion { get; }

Property Value

int

ToVersion

Gets the schema version this migration produces. Must equal VisioForge.Core.MediaBlocks.Serialization.IMediaBlocksPipelineDocumentMigration.FromVersion + 1.

int ToVersion { get; }

Property Value

int

Methods

Migrate(JsonObject)

Upgrades the document in place.

void Migrate(JsonObject document)

Parameters

document JsonObject

The document root object. Never null.