IDbConnectionInterceptor.ConnectionClosing(DbConnection, ConnectionEventData, 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.
EF 'in çağrılması için yeterlidir CloseAsync() .
public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ConnectionClosing (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData eventData, Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult result);
abstract member ConnectionClosing : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData * Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Function ConnectionClosing (connection As DbConnection, eventData As ConnectionEventData, result As InterceptionResult) As InterceptionResult
Parametreler
- connection
- DbConnection
Bağlantı.
- eventData
- ConnectionEventData
Bağlantıyla ilgili 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
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.