I have this query and I get the error in this function:
var accounts = from account in context.Accounts from guranteer in account.Gurantors
use the syntax .ToList() to convert object read from db to list to avoid being re-read again.Hope this would work for it. Thanks.
.ToList()