我见过C#示例,但找不到从VISUAL BASIC中的LINQ SQL查询结果中获取列名的方法。
所以myLINQ查询如下所示:
Dim dbs As New DataClasses1DataContext
Dim s As Table(Of sched) = dbs.GetTable(Of sched)()
Dim sQuery = From sp In s
Where sp.custID = cID
Select sp Order By sp.scheddate
表格中有13个字段,我希望能够在foreach类型循环中读取列名称。任何人都可以帮助我吗?