I am running this query on a Windows Azure Web Role, and need to get a related entity set, but my lambda expression doesn't seem to be working.
var query = from p in applicationsContext.Programs.Expand(p => p.Campus)
where p.ProgramId == Int32.Parse(programsList.SelectedValue)
select p;
I am using System.Linq andSystem.Data.Entities already, but the lambda expression (p => p.Campus) causes the error:
Cannot convert lambda expression to type string because it is not a delegate type
Any idea as to why this wouldn't work?
EDIT: Intellisence also doesn't seem to recognize the 'p' in the lambda expression, that might be part of the problem.
"Campus"would work?