|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace pgstore
{
public class Config
{
public Config()
{
Parametres = new StoreParameters();
Port = 5432;
ServerName = "localhost";
UserName = "postgres";
Password = "";
}
public string ServerName { get; set; }
public string DataBase { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public int Port { get; set; }
public bool AllISOK(ref string message)
{
bool b = true;
if (this.ServerName == "") { b = false; message = "missing server name"; }
if (this.DataBase == "") { b = false; message = "Missing database"; }
if (this.UserName == "") { b = false; message = "Missing username"; }
return b;
}
public StoreParameters Parametres
{ get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.