My question is what is the difference between the following connections?
Conexion Mysql without USING
MySqlConnection databaseConnection = new MySqlConnection("//CADENA DE XCONEXION");
// CODE;
MYSQL Connection with USING
using (NpgsqlConnection cnx = new pgsqlConnection("//CADENA DE CONEXION"))
{
//CODIGO
}
The main difference that I have observed that with the first connection string if you do not close it you can not execute MysqlCommand, DataReader, etc. but instead with the second connection string you can execute MysqlCommand, DataReader, etc. need to close the connection chain