ReaderModificationCommandBatch.AddCommand Method

Definition

Overloads

AddCommand(IReadOnlyModificationCommand)

Adds Updates the command text for the command at the given position in the ModificationCommands list.

AddCommand(ModificationCommand)

Adds the given insert/update/delete ModificationCommands to the batch.

AddCommand(IReadOnlyModificationCommand)

Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs

Adds Updates the command text for the command at the given position in the ModificationCommands list.

C#
public override bool AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
C#
protected virtual void AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);

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

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0

AddCommand(ModificationCommand)

Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs
Source:
ReaderModificationCommandBatch.cs

Adds the given insert/update/delete ModificationCommands to the batch.

C#
public override bool AddCommand (Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);

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 Core 5.0 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0