MigrationBuilder.EnsureSchema(String) 方法

定义

生成 以确保 EnsureSchemaOperation 架构存在。

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation> EnsureSchema (string name);
abstract member EnsureSchema : string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation>
override this.EnsureSchema : string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.EnsureSchemaOperation>
Public Overridable Function EnsureSchema (name As String) As OperationBuilder(Of EnsureSchemaOperation)

参数

name
String

架构的名称。

返回

允许将批注添加到操作的生成器。

注解

有关详细信息和示例 ,请参阅数据库迁移

适用于