SqlServerMigrationsSqlGenerator.Generate Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоRenameTableOperation.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)
Параметры
- operation
- RenameTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного RestartSequenceOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- RestartSequenceOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(SqlOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного SqlOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As SqlOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- SqlOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(SqlServerCreateDatabaseOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоSqlServerCreateDatabaseOperation.MigrationCommandListBuilder
protected virtual void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerCreateDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerCreateDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- SqlServerCreateDatabaseOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(SqlServerDropDatabaseOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоSqlServerDropDatabaseOperation.MigrationCommandListBuilder
protected virtual void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlServerDropDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlServerDropDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- SqlServerDropDatabaseOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного UpdateDataOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As UpdateDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- UpdateDataOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды из списка операций.
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)
Параметры
- operations
- IReadOnlyList<MigrationOperation>
Операции.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- options
- MigrationsSqlGenerationOptions
Параметры, используемые при создании команд.
Возвращаемое значение
Список команд, выполняемых или выполняемых скриптов.
Применяется к
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAddColumnOperation.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)
Параметры
- operation
- AddColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAddForeignKeyOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- AddForeignKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAddPrimaryKeyOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- AddPrimaryKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоCreateIndexOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Параметры
- operation
- CreateIndexOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоCreateTableOperation.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)
Параметры
- operation
- CreateTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоDropColumnOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
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, terminate As Boolean)
Protected Overrides Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Параметры
- operation
- DropColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоDropForeignKeyOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- DropForeignKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоDropIndexOperation.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)
Параметры
- operation
- DropIndexOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоDropPrimaryKeyOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- DropPrimaryKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоDropTableOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Параметры
- operation
- DropTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоInsertDataOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overrides Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Параметры
- operation
- InsertDataOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
- terminate
- Boolean
Указывает, следует ли завершить команду после создания SQL для операции.
Применяется к
Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоRenameSequenceOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- RenameSequenceOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоRenameIndexOperation.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)
Параметры
- operation
- RenameIndexOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DropIndexOperation , выполняя вызовы заданного 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)
Параметры
- operation
- DropIndexOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(MigrationOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоMigrationOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As MigrationOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- MigrationOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Комментарии
Этот метод использует механизм двойной отправки для вызова MigrationsSqlGenerator.Generate метода, относящегося к определенному подтипу MigrationOperation. Обычно поставщики баз данных переопределяют эти конкретные методы, а не этот метод. Однако поставщики могут переопределить эти методы для обработки операций, относящихся к поставщику.
Применяется к
Generate(IReadOnlyList<MigrationOperation>, IModel)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды из списка операций.
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);
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), model As IModel) As IReadOnlyList(Of MigrationCommand)
Параметры
- operations
- IReadOnlyList<MigrationOperation>
Операции.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
Возвращаемое значение
Список команд, выполняемых или выполняемых скриптов.
Применяется к
Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного AddCheckConstraintOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- AddCheckConstraintOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного AddColumnOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- AddColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоRenameColumnOperation.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)
Параметры
- operation
- RenameColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного AddPrimaryKeyOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- AddPrimaryKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAlterColumnOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- AlterColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAlterDatabaseOperation.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)
Параметры
- operation
- AlterDatabaseOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоAlterTableOperation.MigrationCommandListBuilder
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As AlterTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- AlterTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного CreateIndexOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- CreateIndexOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного AddForeignKeyOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- AddForeignKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного CreateTableOperation , выполняя вызовы заданного 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)
Параметры
- operation
- CreateTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DeleteDataOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DeleteDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- DeleteDataOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DropColumnOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- DropColumnOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DropForeignKeyOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- DropForeignKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного CreateSequenceOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- CreateSequenceOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DropPrimaryKeyOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
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)
Параметры
- operation
- DropPrimaryKeyOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(DropTableOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного DropTableOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- DropTableOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного, выполняя вызовы для заданногоEnsureSchemaOperation.MigrationCommandListBuilder
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)
Параметры
- operation
- EnsureSchemaOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.
Применяется к
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
- Исходный код:
- SqlServerMigrationsSqlGenerator.cs
Создает команды для заданного InsertDataOperation , выполняя вызовы заданного MigrationCommandListBuilder, а затем завершает окончательную команду.
protected override void Generate(Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Параметры
- operation
- InsertDataOperation
Операция.
- model
- IModel
Целевая модель, которая может быть null , если операции существуют без модели.
- builder
- MigrationCommandListBuilder
Построитель команд, используемый для создания команд.