Language

MigrationVersionEventData Class

Definition

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

Remarks

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

Constructors

Name Description
MigrationVersionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, Type, String)

Constructs the event payload.

Properties

Name Description
ContextType

The current DbContext.

(Inherited from DbContextTypeEventData)
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)
MigrationVersion

The EF Core version that was used to create the model snapshot, or null if it is not known.

Methods

Name Description
ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to