WarningsConfigurationBuilder.Throw(CoreEventId[]) 方法

定義

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

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

參數

coreEventIds
CoreEventId[]

CoreEventId警告的 () 。

傳回

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

適用於