Help with Where Clause in LinqPad
Hi buddies,
I am new to LINQPad. I am using LINQ to Entities and LINQ to oData but have problems whenever I try to use a where clause:
I am new to LINQPad. I am using LINQ to Entities and LINQ to oData but have problems whenever I try to use a where clause:
from s in Students where s.StudentId == 34 select sI get the error:
'LINQPad.User.Student' does not contain a definition for 'StudentId' and no extension method 'StudentId' accepting a first argument of type 'LINQPad.User.Student' could be found (press F4 to add a using directive or assembly reference)Please help me.
Comments
But whenever I try to use a Primary Key or Foreign Key column in the where clause, it fails terribly. I wonder whether there is some configuration i need to do.
Thanks.
StudentId
instead ofStudentID
.Thanks
(Joel, want to give me some commision?)