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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -