Langue

ProviderMismatchEventData Class

Definition

A DiagnosticSource event payload class for provider mismatch warnings.

[System.Runtime.CompilerServices.Nullable(0)]
public class ProviderMismatchEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type ProviderMismatchEventData = class
    inherit EventData
Public Class ProviderMismatchEventData
Inherits EventData
Inheritance
ProviderMismatchEventData
Attributes

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

Name Description
ProviderMismatchEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, String, String)

Constructs the event payload.

Properties

Name Description
CurrentProviderName

The provider name currently configured.

EventId

The EventId that defines the message ID and name.

(Inherited from EventData)
EventIdCode

A string representing the code where this event is defined.

(Inherited from EventData)
LogLevel

The LogLevel that would be used to log message for this event.

(Inherited from EventData)
MismatchedProviderName

The provider name stored with the model.

Methods

Name Description
ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to