I am trying to join two table and create a tuples list but getting error as 'Only parameterless constructors and initializers are supported in LINQ to Entities'
var list = (
from a in db.CategoryRatings
join c in db.OverallPerformanceByCategories
on a.CategoryRatingId equals c.CategoryRatingId
where c.ReviewId == review.ReviewId
select(new Tuple<string, double, double>(a.CategoryRatingName, a.CategoryWeight, c.Score))
).ToList();
ViewData["ListOverallRating"] = list;
I don't want to create an anonymous type list to using tuples, can suggest other way as well.