IDbCommandInterceptor.DataReaderDisposing(DbCommand, DataReaderDisposingEventData, InterceptionResult) Yöntem

Tanım

Öğesinin yürütülmesi DbDataReader için olduğu zaman çağrılır.

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
Public Function DataReaderDisposing (command As DbCommand, eventData As DataReaderDisposingEventData, result As InterceptionResult) As InterceptionResult

Parametreler

command
DbCommand

Komut.

eventData
DataReaderDisposingEventData

Komut ve okuyucu hakkında bağlamsal bilgiler.

result
InterceptionResult

Bir varsa geçerli sonucu temsil eder. Bu değer, IsSuppressed true bazı önceki bir yakalayıcıyı çağırarak yürütülecektir olarak ayarlanır Suppress() . Bu değer genellikle bu yöntemin uygulanması için dönüş değeri olarak kullanılır.

Döndürülenler

InterceptionResult

IsSuppressedYanlış ise, EF normal olarak devam eder. IsSuppressedTrue Ise EF, gerçekleştirmek üzere olduğu işlemi bastırır. Bu yöntemin, işlemi bastırmaya çalışan her bir şifre için normal bir uygulama, result geçirilen değeri döndürmesidir.

Şunlara uygulanır