Show / Hide Table of Contents

Class MigrationCollection

Collection of migrations. Unlike AggregateMigration these migrations are unordered and may be applied independently.

Inheritance
System.Object
MigrationCollection
Implements
System.Collections.Generic.IEnumerable<IClassMigration>
System.Collections.IEnumerable
Namespace: Eco.Core.Serialization.Migrations
Assembly: Eco.Core.dll
Syntax
public class MigrationCollection : Object, IEnumerable<IClassMigration>, IEnumerable

Constructors

MigrationCollection()

Declaration
public MigrationCollection()

Methods

AddDataMigration(String, Action<DataMigration>)

Add new DataMigration for type name or schema type to the collection. configure action may be used to add data modifications to the migration.

Declaration
protected void AddDataMigration(string typeOrSchemaType, Action<DataMigration> configure)
Parameters
Type Name Description
System.String typeOrSchemaType
System.Action<DataMigration> configure

AddDataMigration(Type, Action<DataMigration>)

Add new DataMigration for type type to the collection. configure action may be used to add data modifications to the migration.

Declaration
protected void AddDataMigration(Type type, Action<DataMigration> configure)
Parameters
Type Name Description
System.Type type
System.Action<DataMigration> configure

AddDataMigration<T>(Action<DataMigration>)

Add new DataMigration for type T to the collection. configure action may be used to add data modifications to the migration.

Declaration
protected void AddDataMigration<T>(Action<DataMigration> configure)
Parameters
Type Name Description
System.Action<DataMigration> configure
Type Parameters
Name Description
T

AddMigration(IClassMigration)

Add migration to the collection.

Declaration
protected void AddMigration(IClassMigration migration)
Parameters
Type Name Description
IClassMigration migration

GetEnumerator()

Declaration
public IEnumerator<IClassMigration> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<IClassMigration>

Implements

System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable

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
☀
☾