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; }
///
/// DB 연결 문자열을 구성하기 위한 필수 항목들이 모두 채워졌는지 확인합니다.
///
///
/// Server, Database, UserId, Password가 모두 비어있지 않으면 true,
/// 그 외에는 false.
///
public bool IsComplete()
{
return !string.IsNullOrWhiteSpace(Server)
&& !string.IsNullOrWhiteSpace(Database)
&& !string.IsNullOrWhiteSpace(UserId)
&& !string.IsNullOrWhiteSpace(Password);
}
}
}