Skip to content

Instantly share code, notes, and snippets.

@joshi-kumar
Created February 17, 2018 13:30
Show Gist options
  • Save joshi-kumar/5cfe5687ae61b55153b665e2de68ad82 to your computer and use it in GitHub Desktop.
Save joshi-kumar/5cfe5687ae61b55153b665e2de68ad82 to your computer and use it in GitHub Desktop.
LINQ best
query = from p in query
from pc in p.ProductCategories.Where(pc => (pc.Category.Published))
select p;
condition on property that is in list of list ex here [query] is list and in this list [ProductCategories] is list, And here check publish prperty that is in query=>ProductCategories=>category.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment