Public Function GetCategories() As DataSet
Dim query As String = "SELECT * FROM Categories"
Dim cmd As New OleDbCommand(query)
Return FillDataSet(cmd, "Categories")
End Function
答案 0 :(得分:0)
据推测,您还没有真正定义FillDataSet
方法。
我认为您可能打算使用SqlDataAdapter
Fill
方法。您可以在此处查看完整示例:Direct method from SQL command text to DataSet