score:8
Accepted answer
you can combine two conditions like x.customerid == 4 && x.designid == 6
if(items.any(x => x.customerid == 4 && x.designid == 6))
Source: stackoverflow.com
Related Query
- How to check if two values exist in a list using linq in c#
- How to select values within a provided index range from a List using LINQ
- C# How to split a List in two using LINQ
- How to convert list of objects with two fields to array with one of them using LINQ
- How to add list of missing values in c# list using Linq
- How to get unique values from two list of dictionaries using Linq?
- Using LINQ I have a list of lists, how do I select all objects that exist in every list?
- How should i use group by and sum on different values of list of models using linq
- how to get two column values in a single query using linq to entities
- Using Linq to check if a list includes null values in the middle
- How can I check the number of calls to the database in LINQ query when using .NET Core and Code First?
- How to check comma separated values stored in data base column having the given value using linq in c#
- How to retrieve the values from list using indexes by linq query?
- How to get the difference of two list in C# using LINQ
- How to find a sub-list of two consecutive items in a list using Linq
- Using Linq how do get a list of users and their last login from two tables
- Using LINQ and EF, how to remove values from database where not in list of items
- how to insert two values manually into table by using code
- How to dynamically group a list and select values using linq query in C#?
- how to get an ordered list with default values using linq
- How to change values of few properties from one list to another using LINQ C#:
- Using LINQ How to access values of List item inside a Class
- How to use Linq to check a list of objects property have allowed values from another list
- How to get values from class list inside a class using linq
- Check a list of DTOs using linq to see if all values that exclude a particular value all equal the same thing
- How to get a list of filtered values in Dictionary into a List using LINQ or Lambda?
- Using LINQ how do you filter a list of strings for values that match the pattern "q1, q2" etc.?
- How to assign values to any one or two prop using linq c# or inside generic method?
- How to check if a list contains item in dynamic list using linq
- How can we get list of two column say firstname and lastname from customer table in mvc using linq query
More Query from same tag
- garbage collection in a linq query
- Find items from a list which exist in another list
- LINQ correlated subqueries
- Is there any benefit to calling .Any() before .ForEach() when using linq?
- How to nest objects in linq query?
- C# Dictionary.Add is forgotten when it gets out of the loop
- Group and filter from list of objects c#
- Compare 2 List using Except
- Linq Query Help - Detecting Null Values
- How to Show text in combobox when no item selected like "..Select room..."
- Neat way of gettings position of my Object in linq collections
- Using Expression<Func<>> in a LINQ Query
- "OR" on-demand with Linq to Entities, how can i do it?
- Best way to write Dynamic Query with dynamic result with Linq or Expression Tree
- VB.NET - Unable to cast object of type 'WhereSelectEnumerableIterator`2
- Expressions: Variable referenced from scope, but it is not defined exception
- Can't get right query result that I need
- Filter values based on custom attribute in another table
- Retrieving related data using linq
- How do you create nested groups with linq via lambda/method expressions
- Why do the 2 LINQ queries get evaluated differently
- Using C# Lambda to split string and search value
- Get a string representation of a property in C# at run-time
- Ordering list by shared value of property
- Using Linq for select row from DataTableA where id not in DataTableB
- Entity Framework related objects using generics
- What is equivalent to clause between, for comparasion strings in LINQ or lambda expression of?
- How to find (and remove) a nested object from a List
- Grouping a list into sublists by key/attribute without changing the list order (just chop into lists by attrib)
- How to combine two lists with different properties based on a condition in C#