Lingua

DbCommandInterceptor.DataReaderDisposing Metodo

Definizione

Chiamato quando l'esecuzione di un oggetto DbDataReader sta per essere eliminata.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult DataReaderDisposing(System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
abstract member DataReaderDisposing : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
override this.DataReaderDisposing : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Overridable Function DataReaderDisposing (command As DbCommand, eventData As DataReaderDisposingEventData, result As InterceptionResult) As InterceptionResult

Parametri

command
DbCommand

Comando .

eventData
DataReaderDisposingEventData

Informazioni contestuali sul comando e sul lettore.

result
InterceptionResult

Rappresenta il risultato corrente, se presente. Questo valore sarà IsSuppressed impostato su true se un precedente intercettore ha eliminato l'esecuzione chiamando Suppress(). Questo valore viene in genere usato come valore restituito per l'implementazione di questo metodo.

Valori restituiti

Se IsSuppressed è false, Entity Framework continuerà come di consueto. Se IsSuppressed è true, Entity Framework elimina l'operazione che sta per eseguire. Una normale implementazione di questo metodo per qualsiasi intercettore che non tenta di eliminare l'operazione consiste nel restituire il result valore passato.

Implementazioni

Si applica a