Freigeben über


ReaderModificationCommandBatch.TryAddCommand Methode

Definition

Versucht, dem Batch das angegebene Einfügen/Aktualisieren/Löschen modificationCommand hinzuzufügen.

public override bool TryAddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
override this.TryAddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Public Overrides Function TryAddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean

Parameter

modificationCommand
IReadOnlyModificationCommand

Der hinzuzufügende Befehl.

Gibt zurück

true , wenn der Befehl erfolgreich hinzugefügt wurde; false , wenn im aktuellen Batch kein Platz zum Hinzufügen des Befehls vorhanden war und er stattdessen einem neuen Batch hinzugefügt werden muss.

Gilt für: