I have a List that includes IQueryAble inside as a property. I'm passing List to my View in MVC project. I iterate through the List using foreach. Inside the foreach:
Albums in type of List
<% foreach(var x in Albums){%>
<h1><%= x.Title %></h1>
<p><%= x.Photos.Count() %> </p>
<%}%>
Displaying the Title is not an issue, but it throws an error as soon it hits the Count(): "This method is not supported against a materialized query result."
what does this mean? I cannot have collection inside a collection? as soon as I iterate through the collection, the other collection inside that class is not useable anymore.
thanks