public MySQLDatabaseConnector(ConnectionStringHelper connectionStringHelper)
        {
            try
            {
                string connectionString = connectionStringHelper.GetConnectionStringSqlClient(DatabaseTypes.MySQL);
                log.InfoFormat("Opening Database using connection string: {0}", connectionString);
                uniConnection = new UniConnection(connectionString);
                DatabaseName = uniConnection.Database;

                ConnectionInformation = connectionStringHelper;
            }
            catch (Exception e)
            {
                throw new DatabaseLoaderException("Could not open database connection. See inner exception for details.", e);
            }
        }
        public SQLServerExpressDatabaseConnector(ConnectionStringHelper connectionStringHelper, string databaseName)
        {
            try
            {
                DatabaseName = databaseName;
                string connectionString = connectionStringHelper.GetConnectionStringSqlClient(DatabaseTypes.SQLServerExpress);
                log.InfoFormat("Opening Database using connection string: {0}", connectionString);
                sqlConnection = new SqlConnection(connectionString);

                if (connectionStringHelper.UseFileName)
                    connectionStringHelper.DatabaseName = System.IO.Path.GetFileNameWithoutExtension(connectionStringHelper.FileName);

                ConnectionInformation = connectionStringHelper;
            }
            catch (Exception e)
            {
                throw new DatabaseLoaderException("Could not open database connection. See inner exception for details.", e);
            }
        }
 private MySQLDatabaseConnector(string connectionString)
 {
     try
     {
         ConnectionInformation = new ConnectionStringHelper(connectionString, DatabaseTypes.MySQL);
         uniConnection = new UniConnection(ConnectionInformation.GetConnectionStringSqlClient());
         DatabaseName = uniConnection.Database;
     }
     catch (Exception e)
     {
         throw new DatabaseLoaderException("Could not open database connection. See inner exception for details.", e);
     }
 }
 public SQLiteDatabaseConnector(ConnectionStringHelper connectionStringHelper)
 {
     try
     {
         Init();
         string connectionString = connectionStringHelper.GetConnectionStringSqlClient(DatabaseTypes.SQLite);
         DatabaseName = connectionStringHelper.FileName;
         ConnectionInformation = connectionStringHelper;
     }
     catch (Exception e)
     {
         throw new DatabaseLoaderException("Could not open database connection. See inner exception for details.", e);
     }
 }