Ejemplo n.º 1
0
        //Initialize values
        private void Initialize()
        {
            Cfg config = new Cfg(SCHEnvironment.CfgDir + "db.xml");

            server   = config.GetValue("server");
            database = config.GetValue("database");
            uid      = config.GetValue("uid");
            password = config.GetValue("password");

            string connectionString;

            connectionString = $"SERVER={server};DATABASE={database};UID={uid};PASSWORD={password};";

            connection = new MySqlConnection(connectionString);
        }