语言

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的 (s)。

返回

相同的生成器实例,以便可以链接多个调用。

适用于