I am using RIA services with Entity Framework- I have the following sql select statement:
select * from TaskTable t, MapTable mt where mt.SiteID=1 and t.EndPointID=mt.EndPointID
How do I write this using method queries and lamda, or any other way I can use in my domain services?
All the examples I see return a new object- do I really have to do this? I thought this would be a pretty simple thing but I haven't found the solultion yet.
I want to do something like:
public void IQueryable<Task> GetTasksFromID(int id)
{
return this.ObjectContext.TaskTable.Where(e => e.SiteID=id)...????
}