ModificationCommandBatch.AddCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddCommand(IReadOnlyModificationCommand) |
Adds the given insert/update/delete ModificationCommands to the batch. |
AddCommand(ModificationCommand) |
Adds the given insert/update/delete ModificationCommands to the batch. |
AddCommand(IReadOnlyModificationCommand)
Adds the given insert/update/delete ModificationCommands to the batch.
public abstract bool AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Public MustOverride Function AddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean
Parameters
- modificationCommand
- IReadOnlyModificationCommand
The command to add.
Returns
true
if the command was successfully added; false
if there was no
room in the current batch to add the command and it must instead be added to a new batch.
Applies to
AddCommand(ModificationCommand)
Adds the given insert/update/delete ModificationCommands to the batch.
public abstract bool AddCommand (Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.ModificationCommand -> bool
Public MustOverride Function AddCommand (modificationCommand As ModificationCommand) As Boolean
Parameters
- modificationCommand
- ModificationCommand
The command to add.
Returns
true
if the command was successfully added; false
if there was no
room in the current batch to add the command and it must instead be added to a new batch.
Applies to
Entity Framework