C# 클래스 Simple.Migrator.MigrationLoader

Handles inspecting code to find all of the Migrations in assemblies and reading other metadata such as the last revision, etc.
파일 보기 프로젝트 열기: juanplopes/simple 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddMigrations() 공개 메소드

public AddMigrations ( IList types ) : void
types IList
리턴 void

CheckForDuplicatedVersion() 공개 메소드

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

GetAvailableMigrations() 공개 메소드

public GetAvailableMigrations ( ) : List
리턴 List

GetMigration() 공개 메소드

public GetMigration ( long version ) : IMigration
version long
리턴 IMigration

GetMigrationVersion() 공개 정적인 메소드

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

MigrationLoader() 공개 메소드

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