this piece of code works
using (ParkingDataContext context = new ParkingDataContext())
{
IQueryable result = context.users;
return result;
}
it will return the records however if you try to filter it using where
function it is unable to return the records, and thus unable to bound
it to a control
using (ParkingDataContext context = new ParkingDataContext())
{
IQueryable result = context.userscontext.users.Where(r => r.UserName
== userName);
return result;
}
for simplicity "userName" is declared as string and is exists in the
database.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---