MigrationsScaffolder.ScaffoldMigration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ScaffoldMigration(String, String, String) |
搭建新迁移的基架。 |
ScaffoldMigration(String, String, String, String) |
搭建新迁移的基架。 |
ScaffoldMigration(String, String, String)
搭建新迁移的基架。
public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string rootNamespace, string subNamespace = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string rootNamespace, string subNamespace);
public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string? rootNamespace, string? subNamespace);
abstract member ScaffoldMigration : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
override this.ScaffoldMigration : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Overridable Function ScaffoldMigration (migrationName As String, rootNamespace As String, Optional subNamespace As String = Nothing) As ScaffoldedMigration
Public Overridable Function ScaffoldMigration (migrationName As String, rootNamespace As String, subNamespace As String) As ScaffoldedMigration
参数
- migrationName
- String
迁移的名称。
- rootNamespace
- String
项目的根命名空间。
- subNamespace
- String
迁移的子命名空间。
返回
基架迁移。
适用于
ScaffoldMigration(String, String, String, String)
搭建新迁移的基架。
public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string rootNamespace, string subNamespace = default, string language = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration ScaffoldMigration (string migrationName, string? rootNamespace, string? subNamespace = default, string? language = default);
abstract member ScaffoldMigration : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
override this.ScaffoldMigration : string * string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Design.ScaffoldedMigration
Public Overridable Function ScaffoldMigration (migrationName As String, rootNamespace As String, Optional subNamespace As String = Nothing, Optional language As String = Nothing) As ScaffoldedMigration
参数
- migrationName
- String
迁移的名称。
- rootNamespace
- String
项目的根命名空间, null
为了指示不生成自动命名空间,只需按原样使用子命名空间。
- subNamespace
- String
迁移的子命名空间。 注意:根命名空间和子命名空间不应同时为空。
- language
- String
项目的语言。
返回
基架迁移。