C# Class MigSharp.MigrationOptions

Use this class to configure the behaviour of the Migrator.
Afficher le fichier Open project: dradovic/MigSharp Class Usage Examples

Private Properties

Свойство Type Description
GetScriptingOptions MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel void
SetPerformanceTraceLevel void
SetSqlTraceLevel void

Méthodes publiques

Méthode Description
ExecuteAndScriptSqlTo ( DirectoryInfo targetDirectory ) : void

Outputs the SQL used for the migrations to external files while migrating the database.

ExecuteAndScriptSqlTo ( string targetDirectory ) : void

Outputs the SQL used for the migrations to external files while migrating the database.

MigrationOptions ( ) : System

Initializes an instance of default options.

MigrationOptions ( string moduleName ) : System

Initializes options that select migrations for specific module only.

OnlyScriptSqlTo ( DirectoryInfo targetDirectory ) : void

Outputs the SQL used for the migrations to external files without affecting the database.

OnlyScriptSqlTo ( string targetDirectory ) : void

Outputs the SQL used for the migrations to external files without affecting the database.

Private Methods

Méthode Description
GetScriptingOptions ( ) : MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel ( SourceLevels sourceLevels ) : void
SetPerformanceTraceLevel ( SourceLevels sourceLevels ) : void
SetSqlTraceLevel ( SourceLevels sourceLevels ) : void

Method Details

ExecuteAndScriptSqlTo() public méthode

Outputs the SQL used for the migrations to external files while migrating the database.
public ExecuteAndScriptSqlTo ( DirectoryInfo targetDirectory ) : void
targetDirectory System.IO.DirectoryInfo
Résultat void

ExecuteAndScriptSqlTo() public méthode

Outputs the SQL used for the migrations to external files while migrating the database.
public ExecuteAndScriptSqlTo ( string targetDirectory ) : void
targetDirectory string
Résultat void

MigrationOptions() public méthode

Initializes an instance of default options.
public MigrationOptions ( ) : System
Résultat System

MigrationOptions() public méthode

Initializes options that select migrations for specific module only.
public MigrationOptions ( string moduleName ) : System
moduleName string The name of the selected module. Only migrations for this module will be executed.
Résultat System

OnlyScriptSqlTo() public méthode

Outputs the SQL used for the migrations to external files without affecting the database.
public OnlyScriptSqlTo ( DirectoryInfo targetDirectory ) : void
targetDirectory System.IO.DirectoryInfo
Résultat void

OnlyScriptSqlTo() public méthode

Outputs the SQL used for the migrations to external files without affecting the database.
public OnlyScriptSqlTo ( string targetDirectory ) : void
targetDirectory string
Résultat void