This question is locked. New answers and comments are not allowed.
public
public static IList<object> GenerateItems() { ModuleContext _context = new ModuleContext(); EntityQuery<Fonctionnalite> q = _context.GetFonctionnalitesByModuleQuery(1); LoadOperation<Fonctionnalite> op = _context.Load(q); var result = new ObservableCollection<object>(); foreach (var f in op.Entities.ToArray()) { var item = new MainPageViewModel(); item.Nom = f.Libelle; item.id = f.idFonctionnalite; foreach (var sf in f.SousFonctionnalites.ToArray()) { var child = new MainPageViewModel(); child.id = sf.idSousFonctionnalite; child.Nom = sf.Libelle; item.RelatedItems.Add(child); } result.Add(item); } return result; }
I want to display a Hierarchical Data in RadPanelBar form the entities Fonctionnalite and SousFoxtionnalite
( a Fonctionnalite has many SousFonctionnalite ) but i can't get a list from the Entityset<Fonctionnalite> !