예제 #1
0
 public DB(
     string source, string catalog, string username,
     string password, string dbSystem, string port = ""
     )
 {
     DatabaseConnect = new DatabaseConnect(source, catalog, username, password, port, dbSystem);
     Connection      = new SqlConnection(DatabaseConnect.GenerateConnectionString());
     try
     {
         Connection.Open();
         Status = "Connected";
     }
     catch (Exception ex)
     {
         Status = "Connection Failed: " + ex;
     }
 }