Пример #1
0
        public static Connection GetInstance(String connection_string)
        {
            if (singleton_conn == null) singleton_conn = new Connection(connection_string);

            return singleton_conn;
        }
Пример #2
0
 public void deveria_instancias_conexao()
 {
     conn = Connection.GetInstance();
 }
Пример #3
0
        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;
        }