As far as I can see the problem is that Linq to Entities provider knows nothing about how to translate you custom method FetchUserInfo
to ESQL.
If UserInfo
is just a DTO and UserInfo.FetchUserInfo
is a kind of Entity to DTO conversion method this would help
var data = query.AsEnumerable().Select(row => UserInfo.FetchUserInfo(row));
.AsEnumerable()
invoke will result in materialization of query
results to memory objects.
Yury Tarabanko
2010-07-06 05:48:32