MigrationsScaffolder.Save(String, ScaffoldedMigration, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将基架迁移保存到文件。
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
要在其中放置文件的目录。 路径相对于项目目录。
返回
保存的迁移文件。