ReaderModificationCommandBatch.AddCommand 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
| AddCommand(IReadOnlyModificationCommand) |
Menambahkan Updates teks perintah untuk perintah pada posisi yang diberikan dalam ModificationCommands daftar. |
| AddCommand(ModificationCommand) |
Menambahkan insert/update/delete ModificationCommands yang diberikan ke batch. |
AddCommand(IReadOnlyModificationCommand)
Menambahkan Updates teks perintah untuk perintah pada posisi yang diberikan dalam ModificationCommands daftar.
public override bool AddCommand(Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
protected virtual void AddCommand(Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
Public Overrides Function AddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean
Protected Overridable Sub AddCommand (modificationCommand As IReadOnlyModificationCommand)
Parameter
- modificationCommand
- IReadOnlyModificationCommand
Perintah yang akan ditambahkan.
Mengembalikan
true jika perintah berhasil ditambahkan; false jika tidak ada ruang dalam batch saat ini untuk menambahkan perintah dan sebaliknya harus ditambahkan ke batch baru.
Berlaku untuk
AddCommand(ModificationCommand)
Menambahkan insert/update/delete ModificationCommands yang diberikan ke batch.
public override bool AddCommand(Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.ModificationCommand -> bool
Public Overrides Function AddCommand (modificationCommand As ModificationCommand) As Boolean
Parameter
- modificationCommand
- ModificationCommand
Perintah yang akan ditambahkan.
Mengembalikan
true jika perintah berhasil ditambahkan; false jika tidak ada ruang dalam batch saat ini untuk menambahkan perintah dan sebaliknya harus ditambahkan ke batch baru.