Convert IQueryable to iCollection

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

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
 
Back
Top