RelationalLoggerExtensions.OldMigrationVersionWarning Method
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.
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.
- migrationVersion
- String
The EF Core version the model snapshot was created with.