put LINQ code in sitecore code -


I have to get "comment" by the article ID and I can only get all the comments in all the articles. My plan is making LINQ code in my code

please see my code

  var childrenss = new list & lt; Sitecore.Data.Items.Item & gt; (); Exotic hair (various hair in item. Gate Child ()) {childrenss.Add ((Sitecore.Data.Items.Item) child); }   

Any advice is appreciated. Thank you.

good looks as if you should be able to use: / P>

  using System.Linq; ... var kids = item Gate Childland () ToList ();    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -