Share via


WarningsConfigurationBuilder.Default(WarningBehavior) Method

Definition

Sets the default behavior when a warning is generated.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder Default (Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior);
abstract member Default : Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
override this.Default : Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
Public Overridable Function Default (warningBehavior As WarningBehavior) As WarningsConfigurationBuilder

Parameters

warningBehavior
WarningBehavior

The desired behavior.

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