Class InstanceMigration
Base class for instance migrations. This kind of migration doesn't care about class headers, but only migrates instance content (fields, properties etc). ClassMigrationBase takes are about nullability flags and other meta info. It also constructs serialized header from output schema.
Inheritance
System.Object
InstanceMigration
Inherited Members
Namespace: Eco.Core.Serialization.Migrations
Assembly: Eco.Core.dll
Syntax
public abstract class InstanceMigration : ClassMigrationBase, IInstanceMigration, IReferenceMigration, IClassMigration, IMigration
Constructors
InstanceMigration(IEnumerable<String>)
Constructs new InstanceMigration which works with compatibleTypes. compatibleTypes is either schema types or type names or mix.
Declaration
protected InstanceMigration(IEnumerable<string> compatibleTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.String> | compatibleTypes |
InstanceMigration(String)
Constructs new InstanceMigration which works with compatibleType. compatibleType is either schema type or type name.
Declaration
protected InstanceMigration(string compatibleType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | compatibleType |
Properties
CompatibleSchemaTypes
Declaration
public override IEnumerable<string> CompatibleSchemaTypes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
Overrides
Methods
MigrateReference(MigrationContext)
Declaration
public override void MigrateReference(MigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MigrationContext | context |