Can I use a Linq To Entities subquery within a (linq to entities) Select clause to fetch a filed value like this:
var a = someIQueryable;
var b = IQueryable_2.Select((a,i)=> new Model
{
SomeFiled = someIQueryable.Where(w=>w.AA==a.AA).Select(w=>w.Calls).First()
}).ToList();
I am getting “Cannot translate method into store expression”.
Is there any way to do this ?
I think the issue is caused by
Selectmethod (though you could probably provide more details). I’m not sure why you useSelectoverload with index parameter if you do not use it. Use anotherSelectoverload: