tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
DatabaseConfiguration.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2using Newtonsoft.Json.Converters;
3
5{
9 public sealed class DatabaseConfiguration
10 {
14 public const string Section = "Database";
15
19 [JsonConverter(typeof(StringEnumConverter))]
20 public DatabaseType DatabaseType { get; set; }
21
25 public bool ResetAdminPassword { get; set; }
26
30 public string ConnectionString { get; set; }
31
35 public bool DropDatabase { get; set; }
36
40 public bool DesignTime { get; set; }
41
45 public string ServerVersion { get; set; }
46 }
47}
Configuration options for the Database.DatabaseContext.
bool DropDatabase
If the database should be deleted on application startup. Should not be used in production!...
string ServerVersion
The string form of the global::System.Version of the target server.
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the DatabaseConfiguration re...
string ConnectionString
The connection string for the database.
bool ResetAdminPassword
If the admin user should be enabled and have it's password reset.
bool DesignTime
Used to indicate that the database is being loaded to generate migrations. Should not be used in prod...
DatabaseType
Type of database to user.
Definition: DatabaseType.cs:7