MigrationsSqlGenerator.Generate Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan InsertDataOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- InsertDataOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(MigrationOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan MigrationOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As MigrationOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- MigrationOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Metode ini menggunakan mekanisme pengiriman ganda untuk memanggil salah satu metode 'Hasilkan' yang khusus untuk subjenis tertentu dari MigrationOperation. Biasanya penyedia database akan mengambil alih metode khusus ini daripada metode ini. Namun, penyedia dapat mengambil alih metode ini untuk menangani operasi khusus penyedia.
Berlaku untuk
Generate(RenameColumnOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan RenameColumnOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- RenameColumnOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(RenameIndexOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan RenameIndexOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- RenameIndexOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(RenameSequenceOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan RenameSequenceOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- RenameSequenceOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(RenameTableOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan RenameTableOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RenameTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RenameTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- RenameTableOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(RestartSequenceOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan RestartSequenceOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.RestartSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As RestartSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- RestartSequenceOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(SqlOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan SqlOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.SqlOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As SqlOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- SqlOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(UpdateDataOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan UpdateDataOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.UpdateDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As UpdateDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- UpdateDataOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(IReadOnlyList<MigrationOperation>, IModel, MigrationsSqlGenerationOptions)
Menghasilkan perintah dari daftar operasi.
public virtual 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 virtual 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);
abstract member 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>
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 Overridable 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)
Parameter
- operations
- IReadOnlyList<MigrationOperation>
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- options
- MigrationsSqlGenerationOptions
Opsi yang digunakan saat membuat perintah.
Mengembalikan
Daftar perintah yang akan dijalankan atau diskrip.
Penerapan
Berlaku untuk
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan AddColumnOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- AddColumnOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan AddForeignKeyOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- AddForeignKeyOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan AddPrimaryKeyOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- AddPrimaryKeyOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan CreateIndexOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- CreateIndexOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan CreateTableOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- CreateTableOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan DropColumnOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- DropColumnOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan DropForeignKeyOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- DropForeignKeyOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder, Boolean)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan DropIndexOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
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, Optional terminate As Boolean = true)
Parameter
- operation
- DropIndexOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan DropPrimaryKeyOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- DropPrimaryKeyOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(DropTableOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan DropTableOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- DropTableOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(InsertDataOperation, IModel, MigrationCommandListBuilder, Boolean)
Membangun perintah untuk yang diberikan InsertDataOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool terminate = true);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.InsertDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, terminate As Boolean)
Protected Overridable Sub Generate (operation As InsertDataOperation, model As IModel, builder As MigrationCommandListBuilder, Optional terminate As Boolean = true)
Parameter
- operation
- InsertDataOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
- terminate
- Boolean
Menunjukkan apakah akan mengakhiri perintah setelah membuat SQL untuk operasi atau tidak.
Berlaku untuk
Generate(EnsureSchemaOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan EnsureSchemaOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As EnsureSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- EnsureSchemaOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(DropUniqueConstraintOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropUniqueConstraintOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropUniqueConstraintOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropSequenceOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropSequenceOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropSequenceOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(IReadOnlyList<MigrationOperation>, IModel)
Menghasilkan perintah dari daftar operasi.
public virtual 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);
abstract member Generate : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation> * Microsoft.EntityFrameworkCore.Metadata.IModel -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand>
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 Overridable Function Generate (operations As IReadOnlyList(Of MigrationOperation), Optional model As IModel = Nothing) As IReadOnlyList(Of MigrationCommand)
Parameter
- operations
- IReadOnlyList<MigrationOperation>
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
Mengembalikan
Daftar perintah yang akan dijalankan atau diskrip.
Penerapan
Berlaku untuk
Generate(AddColumnOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AddColumnOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AddColumnOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AddForeignKeyOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AddForeignKeyOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AddForeignKeyOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AddPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AddPrimaryKeyOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AddPrimaryKeyOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AddUniqueConstraintOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AddUniqueConstraintOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddUniqueConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddUniqueConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AddUniqueConstraintOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AlterColumnOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan AlterColumnOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AlterColumnOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini melempar NotSupportedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(AlterDatabaseOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan AlterDatabaseOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterDatabaseOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterDatabaseOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AlterDatabaseOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa tidak ada implementasi default dari metode ini. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
Berlaku untuk
Generate(AlterSequenceOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AlterSequenceOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AlterSequenceOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AlterTableOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan AlterTableOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AlterTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AlterTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AlterTableOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Keterangan
Perhatikan bahwa implementasi default metode ini tidak melakukan apa pun karena tidak ada metadata umum yang berkaitan dengan operasi ini. Penyedia hanya perlu mengambil alih metode ini jika mereka memiliki beberapa anotasi khusus penyedia yang harus ditangani.
Berlaku untuk
Generate(CreateCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan CreateCheckConstraintOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- CreateCheckConstraintOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(CreateIndexOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan CreateIndexOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- CreateIndexOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(CreateSequenceOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan CreateSequenceOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateSequenceOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateSequenceOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- CreateSequenceOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(CreateTableOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan CreateTableOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As CreateTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- CreateTableOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DeleteDataOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DeleteDataOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DeleteDataOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DeleteDataOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DeleteDataOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropCheckConstraintOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropCheckConstraintOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropColumnOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropColumnOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropColumnOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropForeignKeyOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropForeignKeyOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropForeignKeyOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropIndexOperation, IModel, MigrationCommandListBuilder)
Dapat ditimpa oleh penyedia database untuk membangun perintah untuk yang diberikan DropIndexOperation dengan melakukan panggilan pada yang diberikan MigrationCommandListBuilder.
Perhatikan bahwa implementasi default metode ini melempar NotImplementedException. Penyedia harus mengambil alih jika mereka mendukung operasi semacam ini.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropIndexOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropIndexOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropPrimaryKeyOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropPrimaryKeyOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropPrimaryKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropPrimaryKeyOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropPrimaryKeyOperation
Operasinya.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropSchemaOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropSchemaOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropSchemaOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropSchemaOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropSchemaOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(AddCheckConstraintOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan AddCheckConstraintOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.AddCheckConstraintOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As AddCheckConstraintOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- AddCheckConstraintOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Generate(DropTableOperation, IModel, MigrationCommandListBuilder)
Membangun perintah untuk yang diberikan DropTableOperation dengan melakukan panggilan pada MigrationCommandListBuilder, lalu mengakhiri perintah akhir.
protected virtual void Generate (Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.Generate : Microsoft.EntityFrameworkCore.Migrations.Operations.DropTableOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub Generate (operation As DropTableOperation, model As IModel, builder As MigrationCommandListBuilder)
Parameter
- operation
- DropTableOperation
Operasi.
- model
- IModel
Model target yang mungkin null
jika operasi ada tanpa model.
- builder
- MigrationCommandListBuilder
Penyusun perintah yang digunakan untuk membangun perintah.
Berlaku untuk
Entity Framework