IMigrationsScaffolder.Save 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.
Overloads
Save(String, ScaffoldedMigration, String) |
Saves a scaffolded migration to files. |
Save(String, ScaffoldedMigration, String, Boolean) |
Saves a scaffolded migration to files. |
Save(String, ScaffoldedMigration, String)
- Source:
- IMigrationsScaffolder.cs
- Source:
- IMigrationsScaffolder.cs
Saves a scaffolded migration to files.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles Save (string projectDir, Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration migration, string outputDir);
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles Save (string projectDir, Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration migration, string? outputDir);
abstract member Save : string * Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration * string -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Function Save (projectDir As String, migration As ScaffoldedMigration, outputDir As String) As MigrationFiles
Parameters
- projectDir
- String
The project's root directory.
- migration
- ScaffoldedMigration
The scaffolded migration.
- outputDir
- String
The directory to put files in. Paths are relative to the project directory.
Returns
The saved migrations files.
Applies to
Save(String, ScaffoldedMigration, String, Boolean)
- Source:
- IMigrationsScaffolder.cs
Saves a scaffolded migration to files.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles Save (string projectDir, Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration migration, string? outputDir, bool dryRun = false);
abstract member Save : string * Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Function Save (projectDir As String, migration As ScaffoldedMigration, outputDir As String, Optional dryRun As Boolean = false) As MigrationFiles
Parameters
- projectDir
- String
The project's root directory.
- migration
- ScaffoldedMigration
The scaffolded migration.
- outputDir
- String
The directory to put files in. Paths are relative to the project directory.
- dryRun
- Boolean
If true
, then nothing is actually written to disk.
Returns
The saved migrations files.
Applies to
Entity Framework