Share via


WarningsConfigurationBuilder.Ignore(EventId[]) Method

Definition

Causes nothing to happen when the specified event occurs, regardless of default configuration.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder Ignore (params Microsoft.Extensions.Logging.EventId[] eventIds);
abstract member Ignore : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
override this.Ignore : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
Public Overridable Function Ignore (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