Share via


WarningsConfigurationBuilder.Default(WarningBehavior) Method

Definition

Sets the default behavior when a warning is generated.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Default (Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior);
abstract member Default : Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
override this.Default : Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Infrastructure.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.

Applies to