ModificationCommandBatch.TryAddCommand(IReadOnlyModificationCommand) 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.
Attempts to adds the given insert/update/delete modificationCommand
to the batch.
public abstract bool TryAddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
abstract member TryAddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Public MustOverride Function TryAddCommand (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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework