Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CD_Conexion
- {
- private MySqlConnection Conexion = new MySqlConnection
- ("Server = ligabaltikeishon.com; Database=ligabalt_joom450; User=ligabalt_joom450; pwd=a(!Sp3Yq; SslMode=none;");
- public MySqlConnection Abrirconexion()
- {
- if (Conexion.State == ConnectionState.Closed)
- {
- Conexion.Open();
- }
- return Conexion;
- }
- public MySqlConnection CerrarConexion()
- {
- if (Conexion.State == ConnectionState.Open)
- {
- Conexion.Close();
- }
- return Conexion;
- }**
Add Comment
Please, Sign In to add comment