WarningsConfigurationBuilder.Ignore(CoreEventId[]) 方法

定義

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

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

參數

coreEventIds
CoreEventId[]

警告 CoreEventId 的 () 。

傳回

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

適用於