Files
CROWLER/Configuration/DatabaseOptions.cs
2026-04-04 10:52:30 +03:00

20 lines
831 B
C#

namespace CRAWLER.Configuration;
internal sealed class DatabaseOptions
{
public string ApplicationName { get; set; } = "CRAWLER";
public int CommandTimeoutSeconds { get; set; } = 60;
public int ConnectRetryCount { get; set; } = 3;
public int ConnectRetryIntervalSeconds { get; set; } = 5;
public int ConnectTimeoutSeconds { get; set; } = 15;
public string Database { get; set; } = "CRAWLER";
public bool Encrypt { get; set; }
public bool IntegratedSecurity { get; set; } = true;
public bool MultipleActiveResultSets { get; set; } = true;
public bool Pooling { get; set; } = true;
public int MaxPoolSize { get; set; } = 100;
public int MinPoolSize { get; set; }
public string Server { get; set; } = @".\SQLEXPRESS";
public bool TrustServerCertificate { get; set; } = true;
}