Dil

IDbCommandInterceptor.DataReaderClosing Yöntem

Tanım

EF çağrılmadan hemen önce çağrılır Close().

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

Parametreler

command
DbCommand

Komutu.

eventData
DataReaderClosingEventData

Komut hakkında bağlamsal bilgiler.

result
InterceptionResult

Varsa geçerli sonucu temsil eder. Önceki bir kesme noktası tarafından çağrılarak trueSuppress()yürütme engellendiyse bu değer olarak ayarlanmış olacaktırIsSuppressed. Bu değer genellikle bu yöntemin uygulanması için dönüş değeri olarak kullanılır.

Döndürülenler

ise IsSuppressedfalse, EF normal şekilde devam eder. ise IsSuppressedtrueEF, gerçekleştirmek üzere olduğu işlemi gizler. İşlemi gizlemeye çalışmayan herhangi bir kesme noktası için bu yöntemin bir uygulaması, geçirilen değeri döndürmektir result .

Şunlara uygulanır