得到了一个小问题。我在这段代码中遇到错误:
Private Search As New joiningDataContext
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtsearch.Click
Dim SearchData = Search.SelectData(txtsearch.Text)
DataGridView1.DataSource = SearchData
这是我的存储过程:
AS
SELECT e.employee_id, e.first_name, e.last_name, e.middle_name, e.email, d.department_id, d.manager_id
FROM employee_info AS e
INNER JOIN departments AS d
ON employee_info.employee_id=departments.department_id
WHERE employee_info.employee_id=@employee_id
RETURN
它说,SelectData
不是Windowapplication1.joiningDataContext
的成员。
我怎么解决这个?提前谢谢..