This question is related to this:
My repository method has this code:
public IEnumerable GetApplicationPositionHistor
Generally do not use EF object in view, but create a POCO object for the view model and map the query result on the view model. EF do not execute the query in your repository method because the query are not executed at definition time but only when you try to access the data. In your view you are using the same query many time and this is not correct.
If you want to access the list of object returned by your repository method, use toList