Share via


MigrationsScaffolder.Save Method

Definition

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:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs
Source:
MigrationsScaffolder.cs

Saves a scaffolded migration to files.

public virtual Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles Save (string projectDir, Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration migration, string outputDir);
public virtual 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
override this.Save : string * Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration * string -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Overridable 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.

Implements

Applies to

Save(String, ScaffoldedMigration, String, Boolean)

Source:
MigrationsScaffolder.cs

Saves a scaffolded migration to files.

public virtual Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles Save (string projectDir, Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration migration, string? outputDir, bool dryRun);
abstract member Save : string * Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
override this.Save : string * Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration * string * bool -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationFiles
Public Overridable Function Save (projectDir As String, migration As ScaffoldedMigration, outputDir As String, dryRun As Boolean) 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.

Implements

Applies to