first commit
This commit is contained in:
25
Keps.WinForms/Infrastructure/LegacyConnectionSettings.cs
Normal file
25
Keps.WinForms/Infrastructure/LegacyConnectionSettings.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user