Class NpgsqlCreateDatabaseOperation
- 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
See Database migrations.
Properties
Name
The name of the database.
public virtual string Name { get; set; }
Property Value
Tablespace
The PostgreSQL tablespace in which to create the database.
public virtual string? Tablespace { get; set; }
Property Value
Template
The PostgreSQL database to use as a template for the new database to be created.
public virtual string? Template { get; set; }