Table of Contents

Enum MigrationsSqlGenerationOptions

Namespace
Microsoft.EntityFrameworkCore.Migrations
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

The options to use when generating SQL for migrations.

[Flags]
public enum MigrationsSqlGenerationOptions

Fields

Default = 0

Generate SQL to execute at runtime.

Idempotent = 2

Generate SQL for an idempotent script.

NoTransactions = 4

Generate SQL for a script without transaction statements.

Script = 1

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