2024-03-15 21:17:05 -05:00
|
|
|
namespace AAIntegration.SimmonsBank.API.Configs;
|
|
|
|
|
|
|
|
public class DatabaseConfig
|
|
|
|
{
|
|
|
|
public string Host { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string User { get; set; }
|
|
|
|
public string Password { get; set; }
|
|
|
|
public uint Port { get; set; }
|
|
|
|
|
|
|
|
public string GetConnectionString()
|
|
|
|
{
|
2024-03-15 21:35:24 -05:00
|
|
|
//Server=localhost;Port=15432;Database=aadb;User Id=postgres;Password=nqA3UV3CliLLHpLL"
|
2024-03-15 21:17:05 -05:00
|
|
|
return $"Server={Host};Port={Port};Database={Name};User Id={User};Password={Password}";
|
|
|
|
}
|
|
|
|
}
|