I have to display date in MMM dd,YYYY
format.
var performancereviews = from pr in db.PerformanceReviews
The way I generally solve this problem is by first just getting the data and then selecting it in memory'.
var performancereviews = from pr in db.PerformanceReviews
.Include(a => a.ReviewedByEmployee)
.ToArray()
.Select( ....);
By putting ToArray
(or to List or whatever) it'll finish the sql query part and then do the rest from the collection in memory - which should be fine.