ObjectDataSource and Linq

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    ObjectDataSource and Linq

    Hello,

    I am using LINQ in a ObjectDataSourc e to feed a ListView:

    ' odsTags_Selecti ng
    Private Sub odsTags_Selecti ng(ByVal sender As Object, ByVal e As
    ObjectDataSourc eSelectingEvent Args) Handles odsTags.Selecti ng

    ' 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_Selecti ng

    How can now use the records retrieved?

    Thanks,

    Miguel
Working...