The simple answer is to turn off lazy loading. It will stop ef from wrapping the table data in proxy objects which cause the problem. However if you have lots of navigation properties they will stop loading automagically too.
The second answer to force the query to preform by using ToList() after your linq statement which removes the proxy objects too and then pass it into razor as data.