Show / Hide Table of Contents

Class ObjectMigration<TSrc, TDst>

Used to migrate object instance to other object instance. It may not be used as auto root-level migration, but can be used explicitly as member migration or collection entry migration. It allows to migrate object to null or to value type (opposite to ObjectInstanceMigration<TSrc, TDst>).

Inheritance
System.Object
ObjectMigration<TSrc, TDst>
Implements
IMigration
Namespace: Eco.Core.Serialization.Migrations
Assembly: Eco.Core.dll
Syntax
public class ObjectMigration<TSrc, TDst> : Object, IMigration
Type Parameters
Name Description
TSrc
TDst

Constructors

ObjectMigration(Func<TSrc, TDst>)

Declaration
public ObjectMigration(Func<TSrc, TDst> migrate)
Parameters
Type Name Description
System.Func<TSrc, TDst> migrate

ObjectMigration(Func<MigrationManager, TSrc, TDst>)

Declaration
public ObjectMigration(Func<MigrationManager, TSrc, TDst> migrate)
Parameters
Type Name Description
System.Func<MigrationManager, TSrc, TDst> migrate

Properties

MigrationManager

Declaration
protected MigrationManager MigrationManager { get; set; }
Property Value
Type Description
MigrationManager

Methods

Initialize(MigrationManager)

Declaration
public void Initialize(MigrationManager migrationManager)
Parameters
Type Name Description
MigrationManager migrationManager

Migrate(MigrationContext)

Declaration
public void Migrate(MigrationContext context)
Parameters
Type Name Description
MigrationContext context

Implements

IMigration

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾