ConnectServer() публичный статический Метод

public static ConnectServer ( ) : void
Результат void
 public string ConnectDatabase()
 {
     try {
         Sqlite.ConnectServer();
         return("Connected");
     } catch {
         return("Unnable to connect");
     }
 }
Пример #2
0
 private static void createBlankDBServer()
 {
     LogB.SQL("Creating blank database for server");
     if (Sqlite.CheckFileServer())
     {
         LogB.Error("File already exists. Cannot create.");
     }
     else
     {
         Sqlite.ConnectServer();
         Sqlite.CreateFile();
         Sqlite.CreateTables(true);             //server
         LogB.SQL("Created blank database! Exiting");
         string myVersion = UtilAll.ReadVersion();
         LogB.Warning("CAUTION: client info about versionAvailable (on server): ", myVersion);
         SqlitePreferences.Update("availableVersion", myVersion, false);
         LogB.Information("Maybe you don't want to show this version on pings, change it to last stable published version");
     }
 }