C# - LINQ Including headache...
- by ebb
Case can have many Replies and one User, Replies can have one Case and one User, One User can have many Replies and many Cases.
ObjectSet <= Case Object (IDbSet)
ObjectSet.Include(x => x.User).Include(x => x.Replies).FirstOrDefault(x => x.Id == caseId);
But the User Object for each Reply are not included? Only the User object for Case is Included?
How would I include the User objects for the Replies too?
Thanks in advance!