예제 #1
0
        public static SqlHerramienta Conectar(string strConnectionString)
        {
            SqlHerramienta modSql = new SqlHerramienta()
            {
                _clsSqlConnection = new MySqlConnection(strConnectionString)
            };

            try
            {
                modSql._clsSqlConnection.Open();
                modSql._blnConectado = true;
            }
            catch (Exception ex)
            {
                //
            }
            return(modSql);
        }
예제 #2
0
 public MySqlCommanderRepo(SqlHerramienta sql)
 {
     _sql = sql;
 }