public static Connection GetInstance(String connection_string) { if (singleton_conn == null) singleton_conn = new Connection(connection_string); return singleton_conn; }
public void deveria_instancias_conexao() { conn = Connection.GetInstance(); }
public static Connection GetInstance() { if (singleton_conn == null) singleton_conn = new Connection("Data Source=.;Initial Catalog=db_reserva;Persist Security Info=True;User ID=sa; Password=sadministrador"); return singleton_conn; }