Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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.
|
public CreateBlankScript ( string migrationName ) : string | ||
migrationName | string | name of the migration script |
return | string |
public MigrationDirectory ( IConfigurationManager configurationManager ) : System | ||
configurationManager | IConfigurationManager | |
return | System |