語言

RelationalLoggerExtensions.OldMigrationVersionWarning Method

Definition

Logs for the OldMigrationVersionWarning event.

public static void OldMigrationVersionWarning(this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> diagnostics, Type contextType, string? migrationVersion);
static member OldMigrationVersionWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> * Type * string -> unit
<Extension()>
Public Sub OldMigrationVersionWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Migrations), contextType As Type, migrationVersion As String)

Parameters

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

The diagnostics logger to use.

contextType
Type

The DbContext type being used.

migrationVersion
String

The EF Core version the model snapshot was created with.

Applies to