WarningsConfigurationBuilder.Log(CoreEventId[]) 方法

定義

產生指定的核心警告時,會導致記錄警告。 資料庫提供者 (和其他延伸模組) 可能會提供這個方法的擴充方法多載,以針對他們產生的警告設定此行為。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Log (params Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] coreEventIds);
abstract member Log : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
override this.Log : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
Public Overridable Function Log (ParamArray coreEventIds As CoreEventId()) As WarningsConfigurationBuilder

參數

coreEventIds
CoreEventId[]

警告 CoreEventId 的 () 。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於