Jazyk

IDbCommandInterceptor.DataReaderDisposing Metoda

Definice

Volá se při spuštění nějakého objektu DbDataReader .

public virtual Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult DataReaderDisposing(System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DataReaderDisposingEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
public 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
abstract member 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
Public Function DataReaderDisposing (command As DbCommand, eventData As DataReaderDisposingEventData, result As InterceptionResult) As InterceptionResult

Parametry

command
DbCommand

Příkaz.

eventData
DataReaderDisposingEventData

Kontextové informace o příkazu a čtenáři

result
InterceptionResult

Představuje aktuální výsledek, pokud existuje. Tato hodnota bude nastavena IsSuppressed , true pokud některé předchozí zachytávání potlačí provádění voláním Suppress(). Tato hodnota se obvykle používá jako návratová hodnota pro implementaci této metody.

Návraty

Pokud IsSuppressed ano false, ef bude pokračovat jako normální. Pokud IsSuppressed ano true, ef potlačí operaci, kterou se chystá provést. Implementace této metody pro jakýkoli průsečík, který se nepokouší potlačit operaci, je vrátit result hodnotu předanou.

Platí pro