Hi, I have
List<Car> cars =
from c in myContext.Cars
.Include("Wheels")
.Include("Wheels.Nuts")
orderby c.CarID
These are all EF default generated objects.
I want to turn this into JSON string containting all cars, each with its wheels, and each wheel with with its nuts, just like I would get from query.
Seems like getting back anonymous class from query is way to go, but I don't know how to get 3 level deep anon class?
Any suggestions? Any new frameworks that accomplish this?
Thanks a lot --MB