DbCommandInterceptor.DataReaderDisposing(DbCommand, DataReaderDisposingEventData, InterceptionResult) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
bir yürütmesi DbDataReader atılması hakkında olduğunda çağrılır.
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
Parametreler
- command
- DbCommand
Komut.
- eventData
- DataReaderDisposingEventData
Komut ve okuyucu hakkında bağlamsal bilgiler.
- result
- InterceptionResult
Varsa geçerli sonucu temsil eder.
Bu değer, önceki IsSuppressed bir kesme true noktası çağrılarak yürütmeyi bastırmışsa olarak Suppress() ayarlanmıştır.
Bu değer genellikle bu yöntemin uygulanması için dönüş değeri olarak kullanılır.
Döndürülenler
false ise EF normal IsSuppressed şekilde devam eder.
true IsSuppressed ise EF, gerçekleştirmek üzere olduğu işlemi bastıracak.
Bu yöntemin işlemi gizlemeye çalışan herhangi bir kesme noktası için normal bir uygulaması, geçirilen result değerin geri dönmesidir.