C# Class Simple.Migrator.MigrationLoader

Handles inspecting code to find all of the Migrations in assemblies and reading other metadata such as the last revision, etc.
Exibir arquivo Open project: juanplopes/simple Class Usage Examples

Public Methods

Method Description
AddMigrations ( IList types ) : void
CheckForDuplicatedVersion ( ) : void

Check for duplicated version in migrations.

GetAvailableMigrations ( ) : List
GetMigration ( long version ) : IMigration
GetMigrationVersion ( Type t ) : long

Returns the version of the migration MigrationAttribute.

MigrationLoader ( ITransformationProvider provider, IList types, bool trace ) : System

Method Details

AddMigrations() public method

public AddMigrations ( IList types ) : void
types IList
return void

CheckForDuplicatedVersion() public method

Check for duplicated version in migrations.
CheckForDuplicatedVersion
public CheckForDuplicatedVersion ( ) : void
return void

GetAvailableMigrations() public method

public GetAvailableMigrations ( ) : List
return List

GetMigration() public method

public GetMigration ( long version ) : IMigration
version long
return IMigration

GetMigrationVersion() public static method

Returns the version of the migration MigrationAttribute.
public static GetMigrationVersion ( Type t ) : long
t System.Type Migration type.
return long

MigrationLoader() public method

public MigrationLoader ( ITransformationProvider provider, IList types, bool trace ) : System
provider ITransformationProvider
types IList
trace bool
return System