MigrationVersionEventData Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The DiagnosticSource event payload for OldMigrationVersionWarning.
[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
- 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 |
Methods
| Name | Description |
|---|---|
| ToString() |
A logger message describing this event. (Inherited from EventData) |