persistence/DD.Persistence.Benchmark/Database/DbConnection.cs

15 lines
451 B
C#

namespace Persistence.Benchmark.Database;
public class DbConnection
{
public string Host { get; set; } = null!;
public int Port { get; set; }
public string Username { get; set; } = null!;
public string Password { get; set; } = null!;
public string GetConnectionString() =>
$"Host={Host};Database=persistence;Port={Port};Username={Username};Password={Password};Persist Security Info=True;Include Error Detail=True";
}