WarningsConfiguration.GetBehavior(EventId) Method

Definition

Gets the WarningBehavior set for the given event ID, or null if no explicit behavior has been set.

public virtual Microsoft.EntityFrameworkCore.WarningBehavior? GetBehavior (Microsoft.Extensions.Logging.EventId eventId);
abstract member GetBehavior : Microsoft.Extensions.Logging.EventId -> Nullable<Microsoft.EntityFrameworkCore.WarningBehavior>
override this.GetBehavior : Microsoft.Extensions.Logging.EventId -> Nullable<Microsoft.EntityFrameworkCore.WarningBehavior>
Public Overridable Function GetBehavior (eventId As EventId) As Nullable(Of WarningBehavior)

Parameters

eventId
EventId

Returns

Applies to