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>
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
Properties
MigrationManager
Declaration
protected MigrationManager MigrationManager { get; set; }
Property Value
Methods
Initialize(MigrationManager)
Declaration
public void Initialize(MigrationManager migrationManager)
Parameters
Migrate(MigrationContext)
Declaration
public void Migrate(MigrationContext context)
Parameters
Implements
Extension Methods