WarningConfigurationBuilderExtensions.Throw Method

Definition

Overloads

Throw(WarningsConfigurationBuilder, InMemoryEventId[])

Causes an exception to be thrown when the specified in-memory warnings are generated.

Throw(WarningsConfigurationBuilder, RelationalEventId[])

Causes an exception to be thrown when the specified relational database warnings are generated.

Throw(WarningsConfigurationBuilder, InMemoryEventId[])

Causes an exception to be thrown when the specified in-memory warnings are generated.

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

Parameters

warningsConfigurationBuilder
WarningsConfigurationBuilder

The builder being used to configure warnings.

inMemoryEventIds
InMemoryEventId[]

The InMemoryEventId(s) for the warnings.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

Throw(WarningsConfigurationBuilder, RelationalEventId[])

Causes an exception to be thrown when the specified relational database warnings are generated.

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

Parameters

warningsConfigurationBuilder
WarningsConfigurationBuilder

The builder being used to configure warnings.

relationalEventIds
RelationalEventId[]

The RelationalEventId(s) for the warnings.

Returns

The same builder instance so that multiple calls can be chained.

Applies to