S
shapper
Hello,
I am using LINQ in a ObjectDataSource to feed a ListView:
' odsTags_Selecting
Private Sub odsTags_Selecting(ByVal sender As Object, ByVal e As
ObjectDataSourceSelectingEventArgs) Handles odsTags.Selecting
' Create database
Dim database As New CodeDataContext
' Select tags
Dim tags = From t In database.Tags _
Select t.TagID, _
t.Text, _
Active = t.FilesTags.Any Or t.ArticlesTags.Any
End Sub ' odsTags_Selecting
How can now use the records retrieved?
Thanks,
Miguel
I am using LINQ in a ObjectDataSource to feed a ListView:
' odsTags_Selecting
Private Sub odsTags_Selecting(ByVal sender As Object, ByVal e As
ObjectDataSourceSelectingEventArgs) Handles odsTags.Selecting
' Create database
Dim database As New CodeDataContext
' Select tags
Dim tags = From t In database.Tags _
Select t.TagID, _
t.Text, _
Active = t.FilesTags.Any Or t.ArticlesTags.Any
End Sub ' odsTags_Selecting
How can now use the records retrieved?
Thanks,
Miguel