I had originally asked this question: How Do I Resolve "A specified Include path is not valid"? which was answered, and my .Include() is now working, however, when
In order to fix this I needed to:
IgnoreDataMember
from System.Runtime.Serialization
as an attribute on the Category
navigation property (the back-reference on the Product
class).Hope this helps someone.
To get around the XML-ish errors I used help from here: http://www.strathweb.com/2012/03/serializing-entity-framework-objects-to-json-in-asp-net-web-api/
To get around the problem with the cyclic references, I used this as a guide: MVC 4, Upshot entities cyclic references