MigrationBuilder.EnsureSchema(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework