Share via


IMigrationsAssembly.CreateMigration(TypeInfo, String) Method

Definition

Creates an instance of the migration class.

public Microsoft.EntityFrameworkCore.Migrations.Migration CreateMigration (System.Reflection.TypeInfo migrationClass, string activeProvider);
abstract member CreateMigration : System.Reflection.TypeInfo * string -> Microsoft.EntityFrameworkCore.Migrations.Migration
Public Function CreateMigration (migrationClass As TypeInfo, activeProvider As String) As Migration

Parameters

migrationClass
TypeInfo

The TypeInfo for the migration class, as obtained from the Migrations dictionary.

activeProvider
String

The name of the current database provider.

Returns

The migration instance.

Applies to