Пример #1
0
        public OdbcDataReader executeSelect(string sql)
        {
            if (_conexao == null)
            {
                _conexao = new ConnectDB2(_dsn, _usr, _pwd);
            }

            return(_conexao.executar(sql, TipoQuery.Reader) as OdbcDataReader);
        }
Пример #2
0
        public int executeNonQuery(string sql)
        {
            if (_conexao == null)
            {
                _conexao = new ConnectDB2(_dsn, _usr, _pwd);
            }

            return((int)_conexao.executar(sql, TipoQuery.NonQuery));
        }
Пример #3
0
        public object executeScalar(string sql)
        {
            if (_conexao == null)
            {
                _conexao = new ConnectDB2(_dsn, _usr, _pwd);
            }

            return(_conexao.executar(sql, TipoQuery.Scalar));
        }