C# Класс MigSharp.MigrationOptions

Use this class to configure the behaviour of the Migrator.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetScriptingOptions MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel void
SetPerformanceTraceLevel void
SetSqlTraceLevel void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetScriptingOptions ( ) : MigSharp.Process.ScriptingOptions
SetGeneralTraceLevel ( SourceLevels sourceLevels ) : void
SetPerformanceTraceLevel ( SourceLevels sourceLevels ) : void
SetSqlTraceLevel ( SourceLevels sourceLevels ) : void

Описание методов

ExecuteAndScriptSqlTo() публичный Метод

Outputs the SQL used for the migrations to external files while migrating the database.
public ExecuteAndScriptSqlTo ( DirectoryInfo targetDirectory ) : void
targetDirectory System.IO.DirectoryInfo
Результат void

ExecuteAndScriptSqlTo() публичный Метод

Outputs the SQL used for the migrations to external files while migrating the database.
public ExecuteAndScriptSqlTo ( string targetDirectory ) : void
targetDirectory string
Результат void

MigrationOptions() публичный Метод

Initializes an instance of default options.
public MigrationOptions ( ) : System
Результат System

MigrationOptions() публичный Метод

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.
Результат System

OnlyScriptSqlTo() публичный Метод

Outputs the SQL used for the migrations to external files without affecting the database.
public OnlyScriptSqlTo ( DirectoryInfo targetDirectory ) : void
targetDirectory System.IO.DirectoryInfo
Результат void

OnlyScriptSqlTo() публичный Метод

Outputs the SQL used for the migrations to external files without affecting the database.
public OnlyScriptSqlTo ( string targetDirectory ) : void
targetDirectory string
Результат void