Partager via


SqliteMigrationsSqlGenerator.Generate Method

Definition

Overloads

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Ignored, since schemas are not supported by SQLite and are silently ignored to improve testing compatibility.

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given RenameTableOperation by making calls on the given MigrationCommandListBuilder.

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given RenameIndexOperation by making calls on the given MigrationCommandListBuilder.

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since SQLite does not support sequences.

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given RenameTableOperation by making calls on the given MigrationCommandListBuilder.

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since SQLite does not support sequences.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Builds commands for the given CreateTableOperation by making calls on the given MigrationCommandListBuilder.

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Builds commands for the given AddColumnOperation by making calls on the given MigrationCommandListBuilder.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since SQLite does not support sequences.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Generates commands from a list of operations.

Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Ignored, since schemas are not supported by SQLite and are silently ignored to improve testing compatibility.

Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given DropIndexOperation by making calls on the given MigrationCommandListBuilder.

Generate(IReadOnlyList<MigrationOperation>, IModel)

Generates commands from a list of operations.

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given AlterDatabaseOperation by making calls on the given MigrationCommandListBuilder.

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since SQLite does not support sequences.

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Builds commands for the given CreateTableOperation by making calls on the given MigrationCommandListBuilder.

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Builds commands for the given DropIndexOperation by making calls on the given MigrationCommandListBuilder.

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Throws NotSupportedException since SQLite does not support sequences.

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropUniqueConstraintOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Ignored, since schemas are not supported by SQLite and are silently ignored to improve testing compatibility.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As EnsureSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
EnsureSchemaOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given RenameTableOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
RenameColumnOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given RenameIndexOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
RenameIndexOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since SQLite does not support sequences.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
RenameSequenceOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given RenameTableOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RenameTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
RenameTableOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since SQLite does not support sequences.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As RestartSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
RestartSequenceOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given CreateTableOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
CreateTableOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given AddColumnOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)

Parameters

operation
AddColumnOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
AddForeignKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
AddPrimaryKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since SQLite does not support sequences.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropSequenceOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
DropColumnOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
DropForeignKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Generates commands from a list of operations.

public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel? model = default, Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions options = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default);
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overrides Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing, Optional options As MigrationsSqlGenerationOptions = Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerationOptions.Default) As IReadOnlyList(Of MigrationCommand)

Parameters

operations
IReadOnlyList<MigrationOperation>

The operations.

model
IModel

The target model which may be null if the operations exist without a model.

options
MigrationsSqlGenerationOptions

The options to use when generating commands.

Returns

The list of commands to be executed or scripted.

Applies to

Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Ignored, since schemas are not supported by SQLite and are silently ignored to improve testing compatibility.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropSchemaOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropCheckConstraintOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given DropIndexOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropIndexOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(IReadOnlyList<MigrationOperation>, IModel)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Generates commands from a list of operations.

public override System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> Generate (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> operations, Microsoft.EntityFrameworkCore.Metadata.IModel model = default);
override this.Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
Public Overrides Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing) As IReadOnlyList(Of MigrationCommand)

Parameters

operations
IReadOnlyList<MigrationOperation>

The operations.

model
IModel

The target model which may be null if the operations exist without a model.

Returns

The list of commands to be executed or scripted.

Applies to

Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AddCheckConstraintOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AddForeignKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AddPrimaryKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AddUniqueConstraintOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AlterColumnOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropPrimaryKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given AlterDatabaseOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AlterDatabaseOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
CreateCheckConstraintOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since SQLite does not support sequences.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
CreateSequenceOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given CreateTableOperation by making calls on the given MigrationCommandListBuilder.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
CreateTableOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Builds commands for the given DropIndexOperation by making calls on the given MigrationCommandListBuilder.

protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)

Parameters

operation
DropIndexOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to

Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropColumnOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
DropForeignKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since SQLite does not support sequences.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)

Parameters

operation
AlterSequenceOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

Applies to

Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)

Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs
Source:
SqliteMigrationsSqlGenerator.cs

Throws NotSupportedException since this operation requires table rebuilds, which are not yet supported.

protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)

Parameters

operation
DropPrimaryKeyOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to build the commands.

terminate
Boolean

Indicates whether or not to terminate the command after generating SQL for the operation.

Applies to