MigrationBuilder.EnsureSchema(String) Method

Definition

Builds an EnsureSchemaOperation to ensure that a schema exists.

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)

Parameters

name
String

The name of the schema.

Returns

A builder to allow annotations to be added to the operation.

Remarks

See Database migrations for more information and examples.

Applies to