MigrationsScaffolder.Save(String, ScaffoldedMigration, String) 方法

定义

将基架迁移保存到文件。

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

参数

projectDir
String

项目的根目录。

migration
ScaffoldedMigration

基架迁移。

outputDir
String

要在其中放置文件的目录。 路径相对于项目目录。

返回

保存的迁移文件。

实现

适用于