C# Class MigSharp.MigrationOptions

Use this class to configure the behaviour of the Migrator.
Datei anzeigen Open project: dradovic/MigSharp Class Usage Examples

Private Properties

Property Type Description
GetScriptingOptions MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel void
SetPerformanceTraceLevel void
SetSqlTraceLevel void

Public Methods

Method 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

Method Description
GetScriptingOptions ( ) : MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel ( SourceLevels sourceLevels ) : void
SetPerformanceTraceLevel ( SourceLevels sourceLevels ) : void
SetSqlTraceLevel ( SourceLevels sourceLevels ) : void

Method Details

ExecuteAndScriptSqlTo() public method

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

ExecuteAndScriptSqlTo() public method

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

MigrationOptions() public method

Initializes an instance of default options.
public MigrationOptions ( ) : System
return System

MigrationOptions() public method

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.
return System

OnlyScriptSqlTo() public method

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

OnlyScriptSqlTo() public method

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