Files
KEPS/Keps.WinForms/Infrastructure/LegacyConnectionSettings.cs
2026-03-20 08:52:16 +09:00

26 lines
921 B
C#

namespace Keps.WinForms.Infrastructure
{
public sealed class LegacyConnectionSettings
{
public string Server { get; set; }
public string Database { get; set; }
public string UserId { get; set; }
public string Password { get; set; }
/// <summary>
/// DB 연결 문자열을 구성하기 위한 필수 항목들이 모두 채워졌는지 확인합니다.
/// </summary>
/// <returns>
/// <c>Server</c>, <c>Database</c>, <c>UserId</c>, <c>Password</c>가 모두 비어있지 않으면 <c>true</c>,
/// 그 외에는 <c>false</c>.
/// </returns>
public bool IsComplete()
{
return !string.IsNullOrWhiteSpace(Server)
&& !string.IsNullOrWhiteSpace(Database)
&& !string.IsNullOrWhiteSpace(UserId)
&& !string.IsNullOrWhiteSpace(Password);
}
}
}