Partilhar via


MigrationsSqlGenerationOptions Enum

Definition

The options to use when generating SQL for migrations.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum MigrationsSqlGenerationOptions
[<System.Flags>]
type MigrationsSqlGenerationOptions = 
Public Enum MigrationsSqlGenerationOptions
Inheritance
MigrationsSqlGenerationOptions
Attributes

Fields

Name Value Description
Default 0

Generate SQL to execute at runtime.

Script 1

Generate SQL for a script. Automatically added by GenerateScript(String, String, MigrationsSqlGenerationOptions).

Idempotent 2

Generate SQL for an idempotent script.

NoTransactions 4

Generate SQL for a script without transaction statements.

Remarks

See Database migrations for more information and examples.

Applies to