public OdbcDataReader executeSelect(string sql) { if (_conexao == null) { _conexao = new ConnectDB2(_dsn, _usr, _pwd); } return(_conexao.executar(sql, TipoQuery.Reader) as OdbcDataReader); }
public int executeNonQuery(string sql) { if (_conexao == null) { _conexao = new ConnectDB2(_dsn, _usr, _pwd); } return((int)_conexao.executar(sql, TipoQuery.NonQuery)); }
public object executeScalar(string sql) { if (_conexao == null) { _conexao = new ConnectDB2(_dsn, _usr, _pwd); } return(_conexao.executar(sql, TipoQuery.Scalar)); }