PC Review


Reply
Thread Tools Rate Thread

Convert IQueryable to iCollection

 
 
shapper
Guest
Posts: n/a
 
      22nd Feb 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IList or IQueryable shapper Microsoft C# .NET 0 19th Dec 2008 06:18 PM
Convert Linq IOrderedQueryable to IQueryable Andrus Microsoft C# .NET 4 13th Jan 2008 03:13 PM
MyJaggedIntArr(ICollection<ICollection<int>> items) rejects List<List<Int>> per9000 Microsoft C# .NET 2 19th Dec 2006 12:21 PM
Generics question - enumerating ICollection<T> as ICollection<Base> where T : Base emma_middlebrook@fastmail.fm Microsoft C# .NET 0 2nd Nov 2006 05:05 PM
Queue<> implements ICollection but not ICollection<>? =?Utf-8?B?RGF2ZSBCb29rZXI=?= Microsoft C# .NET 5 10th May 2006 05:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 PM.