public void AddConnectionParameterAndCredential(DataBaseParameter parameter, DataBaseCredential credential)
 {
     Parameters = parameter;
     Credential = credential;
     GenerateConnectionString();
     connection = new SqlConnection(ConnectionString);
 }
 public DataBaseConnector(DataBaseParameter parameters, DataBaseCredential credential)
 {
     errorLog   = new ErrorLog();
     Parameters = parameters;
     Credential = credential;
     GenerateConnectionString();
     connection = new SqlConnection(ConnectionString);
 }
 public DataBaseConnector(DataBaseParameter parameter)
 {
     errorLog   = new ErrorLog();
     Parameters = parameter;
     GenerateConnectionString();
     connection         = new SqlConnection(ConnectionString);
     IntegratedSecurity = true;
 }