共用方式為


SensitiveDataLogger<T>(ILogger<T>, IDbContextOptions) 建構函式

定義

初始化 SensitiveDataLogger<T> 類別的新執行個體。

public SensitiveDataLogger (Microsoft.Extensions.Logging.ILogger<T> logger, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions);
new Microsoft.EntityFrameworkCore.Infrastructure.SensitiveDataLogger<'T> : Microsoft.Extensions.Logging.ILogger<'T> * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Infrastructure.SensitiveDataLogger<'T>
Public Sub New (logger As ILogger(Of T), contextOptions As IDbContextOptions)

參數

logger
ILogger<T>

應該寫入記錄資訊的基礎記錄器。

contextOptions
IDbContextOptions

這個記錄器正在使用之內容的選項。

適用於