Condividi tramite


ModificationCommandBatch.TryAddCommand(IReadOnlyModificationCommand) Metodo

Definizione

Tenta di aggiungere l'inserimento/aggiornamento/eliminazione modificationCommand specificato al 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

Parametri

modificationCommand
IReadOnlyModificationCommand

Comando da aggiungere.

Restituisce

true se il comando è stato aggiunto correttamente; false se non c'era spazio nel batch corrente per aggiungere il comando e deve essere aggiunto invece a un nuovo batch.

Si applica a