Welcome to ADO.NET entity Framework and LINQ to Entities forum!
I am not an expert of WPF or Silverlight, so I don’t quite familiar with how the data is working with HierarchicalDataTemplate. But at the EF side, the related entities can be generally loaded through two methods: ObjectQuery<>.Include and EntityReference.Load/EntityCollection.Load.
E.g. we have an self-referencing entity named Person. Each person has parents and children as navigation properties. Such a query will load certain person, his children and his grandchildren:
var query = from p in context.People.Include("Children.Children") select p;
For each Person entity, we can also determine whether to load the related parent and children:
If you have any questions, please feel free to let me know. Also please provide us with more detailed information about this question.
Have a nice day!
MSDN Subscriber Supportin Forum
If you have any feedback on our support, please email@example.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework!
If you have any feedback, please tell us.