WarningsConfigurationBuilder.Throw(EventId[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Causes an exception to be thrown when the specified event occurs, regardless of default configuration.
public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder Throw (params Microsoft.Extensions.Logging.EventId[] eventIds);
abstract member Throw : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
override this.Throw : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
Public Overridable Function Throw (ParamArray eventIds As EventId()) As WarningsConfigurationBuilder
Parameters
- eventIds
- EventId[]
The IDs for events to configure.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
Event ID values can be found in CoreEventId and RelationalEventId. The database provider being used may also define provider-specific event IDs in a similar class.
See Configuration for specific messages for more information and examples.
Applies to
Entity Framework