public RepositoryFactory(string server, string port, /*string userId, string password,*/ string database)
        {
            npgsql = new NpgsqlConnection("Server=" + server +
                                          "; Port=" + port +

                                          /*"; User Id=" + userId +
                                           * "; Password="******"; Database=" + database);
            sqlConnect = new SQLConnect(npgsql);
            OpenConnection();
            MessageBox.Show("Connection opened");
        }
Example #2
0
 public SQLConnect GetNewSQLConnection()
 {
     return(_newConnect = new SQLConnect(_conn));
 }