FillDataSet未声明为msg

时间:2017-03-31 15:51:42

标签: vb.net

Public Function GetCategories() As DataSet

  Dim query As String = "SELECT * FROM Categories"
  Dim cmd As New OleDbCommand(query)
  Return FillDataSet(cmd, "Categories")

 End Function

1 个答案:

答案 0 :(得分:0)

据推测,您还没有真正定义FillDataSet方法。

我认为您可能打算使用SqlDataAdapter Fill方法。您可以在此处查看完整示例:Direct method from SQL command text to DataSet