score:3
Lets try something like this:
Projects.Where(pr => pr.Users.Any(us => us.ID == uid) )
I suggest to You read LINQ tutorial or here as well
Source: stackoverflow.com
Related Articles
- Filtering List based on a nested list using LINQ
- Filtering data based on matching ids present in a list using LINQ
- filtering a list using LINQ
- Sort a list and all its nested objects using LINQ
- Group items in a list based on two properties using LINQ
- Using LINQ on a List to return a subset list based on sequential dates
- Filtering a nested collection using linq
- Converting list with nested list to a separate list using Linq
- Get a count list of a nested list using LINQ
- Transfor List to Nested Dictionary using linq C#
- Using LINQ to filter a list of items based on those items' presence in another list
- Using LINQ to get the difference between two list of objects based only on a single object property
- Sorting a list based on status using linq c#
- Create a nested list from a flat list using Linq
- Using LINQ to group a list of strings based on known substrings that they will contain
- Elegant LINQ based approach to instantiating a List using the details of an IEnumerable
- Compare two list in C# and reject or select the child list based on conditions using LINQ or foreach
- Filtering folders from a list when using LINQ to sort to find the oldest file
- Add objects to a List nested inside a Dictionary using LINQ extensions
- Searching for an item in a list that's nested inside another list based on a property value in C# using LINQ?
- Select objects from a list using LINQ based on a property
- Using Linq to object, how can I get one field's value based on another in the same list
- How to populate a nested List Class using linq
- How to update a list based on more than one Condition using LINQ C#
- Find the position of a List Item in a List based upon specifice criteria using LINQ
- How to order list of string based on StatrtWith using LINQ
- Filtering a list based on another list - LINQ
- using Linq to sort a list based on the sum of values in each item
- Filtering a list in a list using linq
- Get a list of duplicate entries in List based on 2 fields using Linq
- Get ID of item selected in ComboBox
- Reason not to use LINQ
- Xml failing to deserialise
- Can we add new elements to a list using Parallel.ForEach()?
- Speeding up my simple Redis .NET application
- C# method accepting a predicate - does this look ok?
- Get string that follows second-last occurrence of character/string
- LINQ to SQL, select from an inheritted class
- Strange slowness while iterating over Linq result
- Fill List<T> with IEnumerable<T> when projecting a new type using LINQ
- LINQ to SQL Classes, How to change column format? (DataGrid)
- Get week of date from linq query
- Sort Dictionary based on values in a list of integers
- How to convert List<Dapper.SqlMapper.FastExpando> to runtime type (List<IDictionary<string,object>>)
- LINQ or Navigation Properties command to retrieve 1 to many data
- check null field in linq new object
- Is there a way to use Entity Framework and Linq to order by a dynamic field?
- Extract List elements of specific types with LINQ
- LINQ for multiple count operations
- Using linq to iterate through winform menuitems and change a property value