Convert IQueryable to iCollection

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

    #1

    Convert IQueryable to iCollection

    Hello,

    I am querying a database using Linq:

    Dim db As New dbDataContext
    Dim query = From u In database.Users _
    Select u.Name
    Return query

    Query is of type IQueryable . I would like to return it as a
    iCollection to be able to connect to a ListView and use a DataPager.

    Thanks,

    Miguel
Working...