{
...
protected System.Data.DataSet ds;
protected System.Data.DataTable eventTable;
protected System.Data.OleDb.OleDbDataAdapter daAttendees;
protected System.Data.OleDb.OleDbDataAdapter daRooms;
protected System.Data.OleDb.OleDbDataAdapter daEvents;
提示:所有OLE DB对象都有SQL Server版本,它们的用法也是一样的。
Page_Load()现在需要创建DataSet对象:
private void Page_Load(object sender, System.EventArgs e)
{
oleDbConnection1.Open();
ds = new DataSet();
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/