I want to join two queries into one, how can I do this?
For example:
Query #1:
query = query.Where(q => q.Currency == filter.Currency)
Query #2:
query = query.Where(n => n.FirstName == filter.FirstName)
As a result ,I want to get
query = query.Where(k => k.Currency == filter.Currency &&
k.FirstName == filter.FirstName)
Queries are created dynamically, they can include many conditions.
update:
I have a two search types and they can work together. And in the first part there may be several conditions, and in the second one too. The second filter can include two parts with "and" "or"
where
if you need it to be