Пример #1
0
 public DBService(ConnectionVO connVO,string HostURL)
 {
     try
     {
         NpgsqlConnectionStringBuilder nsb = new NpgsqlConnectionStringBuilder();
         nsb.Host = HostURL;
         nsb.Port = 5432;
         nsb.SSL = false;
         nsb.IntegratedSecurity = false;
         nsb.UserName = "******";
         nsb.Database = connVO.DataBaseName;
         nsb.Password = connVO.DBPassword;
         NpgConn = new NpgsqlConnection(nsb.ToString());
         NpgConn.Open();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public void RestoreDB(string BackupFilePath, ConnectionVO connVO)
 {
     DBController.RestoreDB(BackupFilePath, connVO);
 }
Пример #3
0
 public void CreateDB(ConnectionVO connVO)
 {
     //   DBController.CreateDB(connVO);
 }
Пример #4
0
 internal static void RestoreDB(string BackupFilePath, ConnectionVO connVO)
 {
     //  DBService.Restore(connVO.DataBasePath, BackupFilePath,connVO.DBID,connVO.DBPassword);
 }
Пример #5
0
        private bool CheckDB(ConnectionVO connVO)
        {
            //string DBList = new FileExecuter().ExecWithReturnValue("psql.exe", @"\list");
            //if (DBList)
            //{

            //}
            return true;
        }
Пример #6
0
 private void AddDB(ConnectionVO connVO)
 {
 }