IMigrationsAssembly.CreateMigration(TypeInfo, String) 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework