-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathNpgsqlCreateDatabaseOperation.cs
More file actions
31 lines (27 loc) · 1.01 KB
/
NpgsqlCreateDatabaseOperation.cs
File metadata and controls
31 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations;
/// <summary>
/// A PostgreSQL-specific <see cref="MigrationOperation" /> to create a database.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-migrations">Database migrations</see>.
/// </remarks>
[DebuggerDisplay("CREATE DATABASE {Name}")]
public class NpgsqlCreateDatabaseOperation : DatabaseOperation
{
/// <summary>
/// The name of the database.
/// </summary>
public virtual string Name { get; set; } = null!;
/// <summary>
/// The PostgreSQL database to use as a template for the new database to be created.
/// </summary>
public virtual string? Template { get; set; }
/// <summary>
/// The PostgreSQL tablespace in which to create the database.
/// </summary>
public virtual string? Tablespace { get; set; }
/// <summary>
/// The PostgreSQL encoding to use for the database.
/// </summary>
public virtual string? Encoding { get; set; }
}