Share via


ScaffoldedMigration Constructor

Definition

Initializes a new instance of the ScaffoldedMigration class.

public ScaffoldedMigration (string fileExtension, string previousMigrationId, string migrationCode, string migrationId, string metadataCode, string migrationSubNamespace, string snapshotCode, string snapshotName, string snapshotSubNamespace);
public ScaffoldedMigration (string fileExtension, string? previousMigrationId, string migrationCode, string migrationId, string metadataCode, string migrationSubNamespace, string snapshotCode, string snapshotName, string snapshotSubNamespace);
new Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration : string * string * string * string * string * string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Sub New (fileExtension As String, previousMigrationId As String, migrationCode As String, migrationId As String, metadataCode As String, migrationSubNamespace As String, snapshotCode As String, snapshotName As String, snapshotSubNamespace As String)

Parameters

fileExtension
String

The file extension code files should use.

previousMigrationId
String

The previous migration's ID.

migrationCode
String

The contents of the migration file.

migrationId
String

The migration's ID.

metadataCode
String

The contents of the migration metadata file.

migrationSubNamespace
String

The migration's sub-namespace.

snapshotCode
String

The contents of the model snapshot file.

snapshotName
String

The model snapshot's name.

snapshotSubNamespace
String

The model snapshot's sub-namespace.

Applies to