GetConnectionString() public static method

public static GetConnectionString ( ) : string
return string
Ejemplo n.º 1
0
        private static void CreateAndInitializeDatabase()
        {
            var recreateDatabaseSql = String.Format(
                @"CREATE DATABASE IF NOT EXISTS `{0}`",
                ConnectionUtils.GetDatabaseName());

            using (var connection = new MySqlConnection(
                       ConnectionUtils.GetMasterConnectionString()))
            {
                connection.Execute(recreateDatabaseSql);
            }

            using (var connection = new MySqlConnection(
                       ConnectionUtils.GetConnectionString()))
            {
                MySqlObjectsInstaller.Install(connection);
            }
        }
Ejemplo n.º 2
0
 private MySqlStorage CreateStorage()
 {
     return(new MySqlStorage(
                ConnectionUtils.GetConnectionString(),
                _options));
 }
Ejemplo n.º 3
0
 private ElasticStorage.ElasticStorage CreateStorage()
 {
     return(new ElasticStorage.ElasticStorage(
                ConnectionUtils.GetConnectionString(),
                _options));
 }