using
CUBRID.Data.CUBRIDClient;
namespace
DataSetExample
{
class
Program
{
static
void
Main(
string
[] args)
{
CUBRIDConnectionStringBuilder sb =
new
CUBRIDConnectionStringBuilder(
"localhost"
,
"demodb"
,
"public"
,
""
,
"33000"
,
true
);
using
(CUBRIDConnection conn =
new
CUBRIDConnection(sb.GetConnectionString()))
{
conn.Open();
string
queryString =
"select * from nation order by `code` asc"
;
CUBRIDDataAdapter adapter =
new
CUBRIDDataAdapter();
adapter.SelectCommand =
new
CUBRIDCommand(queryString , conn);
DataSet nation =
new
DataSet(
"nation"
);
adapter.Fill(nation);
conn.Close();
}
}
}
}