EventDefinitionBase Constructors

Definition

Overloads

EventDefinitionBase(EventId, LogLevel)

Creates an event definition instance.

EventDefinitionBase(EventId, LogLevel, String)

Creates an event definition instance.

EventDefinitionBase(ILoggingOptions, EventId, LogLevel, String)

Creates an event definition instance.

EventDefinitionBase(EventId, LogLevel)

Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs

Creates an event definition instance.

C#
protected EventDefinitionBase (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level);

Parameters

eventId
EventId

The EventId.

level
LogLevel

The LogLevel at which the event will be logged.

Applies to

Entity Framework Core 2.2 ja muud versioonid
Toode Versioonid
Entity Framework Core 2.0, 2.1, 2.2

EventDefinitionBase(EventId, LogLevel, String)

Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs

Creates an event definition instance.

C#
protected EventDefinitionBase (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode);

Parameters

eventId
EventId

The EventId.

level
LogLevel

The LogLevel at which the event will be logged.

eventIdCode
String

A string representing the code that should be passed to ConfigureWanings.

Applies to

Entity Framework Core 2.2 ja Entity Framework Core 2.1
Toode Versioonid
Entity Framework Core 2.1, 2.2

EventDefinitionBase(ILoggingOptions, EventId, LogLevel, String)

Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs
Source:
EventDefinitionBase.cs

Creates an event definition instance.

C#
protected EventDefinitionBase (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode);

Parameters

loggingOptions
ILoggingOptions

Logging options.

eventId
EventId

The EventId.

level
LogLevel

The LogLevel at which the event will be logged.

eventIdCode
String

A string representing the code that should be passed to ConfigureWarnings(Action<WarningsConfigurationBuilder>).

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0