共用方式為


CoreLoggerExtensions.ContextDisposed 方法

定義

ContextDisposed事件的記錄。

public static void ContextDisposed (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext context);
static member ContextDisposed : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * Microsoft.EntityFrameworkCore.DbContext -> unit
<Extension()>
Public Sub ContextDisposed (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), context As DbContext)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

要使用的診斷記錄器。

context
DbContext

使用的內容。

適用於