is there a difference in attaching a IQueryable to a datasource?

when IQueryable was used as a return datatype such as this

     IQueryable result =
     from r in context.users
     where r.UserName.Contains(userName)
     select r;

     return result;

cannot seem to bound it to a datasource it returns an exception
"Complex
DataBinding accepts as a data source either an IList or an
IListSource."

     var result =
     from r in context.users
     where r.UserName.Contains(userName)
     select r;

     return result.ToList();

however this can be successfully bound to any datasource.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to