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.
Afficher le fichier Open project: juanplopes/simple Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public AddMigrations ( IList types ) : void
types IList
Résultat void

CheckForDuplicatedVersion() public méthode

Check for duplicated version in migrations.
CheckForDuplicatedVersion
public CheckForDuplicatedVersion ( ) : void
Résultat void

GetAvailableMigrations() public méthode

public GetAvailableMigrations ( ) : List
Résultat List

GetMigration() public méthode

public GetMigration ( long version ) : IMigration
version long
Résultat IMigration

GetMigrationVersion() public static méthode

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

MigrationLoader() public méthode

public MigrationLoader ( ITransformationProvider provider, IList types, bool trace ) : System
provider ITransformationProvider
types IList
trace bool
Résultat System