Users Pricing

forum

home / developersection / forums / how to work with or condition using lamda expression

How to work with OR condition using lamda expression

Sushant Mishra 1877 14 Jul 2017

How to work with OR condition using lamda expression

I am using this code 

model = model.Where((x => x.ParentId == true )||(x => x.ParentName == true))

Its not working it shows error that operator || cannot be applied to operands of type lambda expression and lamda expression

 


1 Answers