Created
February 17, 2018 13:30
-
-
Save joshi-kumar/5cfe5687ae61b55153b665e2de68ad82 to your computer and use it in GitHub Desktop.
LINQ best
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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