共用方式為


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

結構描述的名稱。

傳回

建置器,允許將批註新增至作業。

備註

如需詳細資訊和範例 ,請參閱資料庫移 轉。

適用於