Hi, any suggestions for creating a LINQ statement based on your search criteria?
I will pass an instance of the "SearchCriteria" class with all parameters that allow a null value.
Then i want
if (sc.a != null) // add to where if (sc.b != null) // add to where
The key point is that it is OR, not AND.
Any tips?
And for bonus points would I like to use 'contains' in int? but I can only get equal or not equal.
source share