C# 클래스 DotNetMigrations.Migrations.MigrationDirectory

상속: IMigrationDirectory
파일 보기 프로젝트 열기: jpoehls/dotnetmigrations 1 사용 예제들

공개 메소드들

메소드 설명
CreateBlankScript ( string migrationName ) : string

Creates a blank migration script with the given name.

GetPath ( ILogger log ) : string

Returns the migration script path from the config file (if available) or the default path.

GetScripts ( ) : IEnumerable

Returns a list of all the migration script file paths sorted by version number (ascending).

MigrationDirectory ( ) : System
MigrationDirectory ( IConfigurationManager configurationManager ) : System

비공개 메소드들

메소드 설명
GetNewVersionNumber ( ) : long

Generates a new version number for assignment.

SanitizeMigrationName ( string migrationName ) : string

Returns a file name friendly version of the given migration name.

VerifyAndCreatePath ( string path ) : void

Verify the path exists and creates it if it's missing.

메소드 상세

CreateBlankScript() 공개 메소드

Creates a blank migration script with the given name.
public CreateBlankScript ( string migrationName ) : string
migrationName string name of the migration script
리턴 string

GetPath() 공개 메소드

Returns the migration script path from the config file (if available) or the default path.
public GetPath ( ILogger log ) : string
log ILogger
리턴 string

GetScripts() 공개 메소드

Returns a list of all the migration script file paths sorted by version number (ascending).
public GetScripts ( ) : IEnumerable
리턴 IEnumerable

MigrationDirectory() 공개 메소드

public MigrationDirectory ( ) : System
리턴 System

MigrationDirectory() 공개 메소드

public MigrationDirectory ( IConfigurationManager configurationManager ) : System
configurationManager IConfigurationManager
리턴 System