Table of Contents

Class NpgsqlCreateDatabaseOperation

Namespace
Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations
Assembly
Npgsql.EntityFrameworkCore.PostgreSQL.dll

A PostgreSQL-specific MigrationOperation to create a database.

public class NpgsqlCreateDatabaseOperation : DatabaseOperation, IAnnotatable, IMutableAnnotatable, IReadOnlyAnnotatable
Inheritance
NpgsqlCreateDatabaseOperation
Implements
Inherited Members

Remarks

Properties

Name

The name of the database.

public virtual string Name { get; set; }

Property Value

string

Tablespace

The PostgreSQL tablespace in which to create the database.

public virtual string? Tablespace { get; set; }

Property Value

string

Template

The PostgreSQL database to use as a template for the new database to be created.

public virtual string? Template { get; set; }

Property Value

string