mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
25 lines
602 B
C#
25 lines
602 B
C#
namespace Teknik.Configuration
|
|
{
|
|
public class DatabaseConfig
|
|
{
|
|
public string Server { get; set; }
|
|
public int Port { get; set; }
|
|
public string Database { get; set; }
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
|
|
public DatabaseConfig()
|
|
{
|
|
SetDefaults();
|
|
}
|
|
|
|
public void SetDefaults()
|
|
{
|
|
Server = "localhost";
|
|
Port = 3306;
|
|
Database = string.Empty;
|
|
Username = string.Empty;
|
|
Password = string.Empty;
|
|
}
|
|
}
|
|
} |