Class MigrationCollection
Collection of migrations. Unlike AggregateMigration these migrations are unordered and may be applied independently.
Inheritance
System.Object
MigrationCollection
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