>EntityQuery<Project> query = (from p in _Context.Projects > from c in _Context.Change_Requests > where p.Project_ID == c.Project_ID && c.Subdivision == SubdivisionID > select p);>I get an error ..
>Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<ChangeManagement.Web.Project>' to 'System.ServiceModel.DomainServices.Client.EntityQuery<ChangeManagement.Web.Project>'>How do I get by this?
public IQueryable<Project> GetProjForSubDiv(int SubDivisionId) { return (from c in ObjectContext.Change_Requests where c.SubDivision == SubDivisionId select c.Project); }and client side becomes something like:
EntityQuery<Project> query = _Context.GetProjForSubDivQuery(12345);
_Context.Load<Project>(query).Completed += (loadOp, args) =>
{
var x = ((LoadOperation)loadOp).Entities;
//or whatever....
};