Ejemplo n.º 1
0
 /// <summary>
 /// Recursive method used if eager loading
 /// </summary>
 /// <param name="link"></param>
 private void BuildLinks(StructuredStoredLink link)
 {
     link.Children = new List <StructuredStoredLink>();
     link.Children.AddRange(GetLinksForParentIdOf(link.Id).Select(x => new StructuredStoredLink(x)));
     foreach (var item in link.Children)
     {
         BuildLinks(item);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Recursive method used if eager loading
 /// </summary>
 /// <param name="link"></param>
 private void BuildLinks(StructuredStoredLink link)
 {
     link.Children =new List<StructuredStoredLink>();
     link.Children.AddRange(GetLinksForParentIdOf(link.Id).Select(x => new StructuredStoredLink(x)));
     foreach(var item in link.Children)
     {
         BuildLinks(item);
     }
 }