共用方式為


WarningsConfigurationBuilder.Default(WarningBehavior) 方法

定義

在產生警告時設定預設行為。

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

參數

warningBehavior
WarningBehavior

所需的行為。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於