ScaffoldedMigration Constructor
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.
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
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