In a C# 2010 application, I am trying to use the following linq to
sql statment. However I am getting an error message on the select statement listed below.
eDataContext eData = new eRPTDataContext();
var eRPTRVWRun = eData.Client_Schedules.Where(c => c.Review_month == selMonth && c.Review_year == selYear).Select(c => c.Review_id).FirstOrDefault();
Thus can you tell me what I can change so that select statement in the linq to sql builds clean?
C# 2010 linq to sql
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jan 27, 2013, 12:15 AM EST
What is the precise error you're getting?
dcRank #2,247 · 627 reputationPosted Jan 27, 2013, 4:51 PM EST