WarningConfigurationBuilderExtensions.Throw 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Throw(WarningsConfigurationBuilder, InMemoryEventId[]) |
导致在生成指定的内存中警告时引发异常。 |
Throw(WarningsConfigurationBuilder, RelationalEventId[]) |
导致在生成指定的关系数据库警告时引发异常。 |
Throw(WarningsConfigurationBuilder, InMemoryEventId[])
导致在生成指定的内存中警告时引发异常。
public static Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Throw (this Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder warningsConfigurationBuilder, params Microsoft.EntityFrameworkCore.Infrastructure.InMemoryEventId[] inMemoryEventIds);
static member Throw : Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder * Microsoft.EntityFrameworkCore.Infrastructure.InMemoryEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
<Extension()>
Public Function Throw (warningsConfigurationBuilder As WarningsConfigurationBuilder, ParamArray inMemoryEventIds As InMemoryEventId()) As WarningsConfigurationBuilder
参数
- warningsConfigurationBuilder
- WarningsConfigurationBuilder
用于配置警告的生成器。
- inMemoryEventIds
- InMemoryEventId[]
警告 InMemoryEventId () 。
返回
同一生成器实例,以便可以链接多个调用。
适用于
Throw(WarningsConfigurationBuilder, RelationalEventId[])
导致在生成指定的关系数据库警告时引发异常。
public static Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Throw (this Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder warningsConfigurationBuilder, params Microsoft.EntityFrameworkCore.Infrastructure.RelationalEventId[] relationalEventIds);
static member Throw : Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder * Microsoft.EntityFrameworkCore.Infrastructure.RelationalEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
<Extension()>
Public Function Throw (warningsConfigurationBuilder As WarningsConfigurationBuilder, ParamArray relationalEventIds As RelationalEventId()) As WarningsConfigurationBuilder
参数
- warningsConfigurationBuilder
- WarningsConfigurationBuilder
用于配置警告的生成器。
- relationalEventIds
- RelationalEventId[]
警告 RelationalEventId () 。
返回
同一生成器实例,以便可以链接多个调用。