Please i need someone to help convert this query entity(c#) form.
select *
from incident
where Details like'%Help%'
and status = 'Resolved'
or details like '%Help%' and Status = 'Closed'
See what I tried
incident = incident.Where(s => s.Details.ToUpper().Contains(SearchParam.ToUpper()));
WHEREclause (in your SQL statement) get combined how? I have a feeling you might want something else than what you really get right now...WHERE Details LIKE '%Help%' AND [status] IN ('Resolved', 'Closed');? MixingANDandORcan be quite confusing, and repeating the same clause multiple times is wasteful. IMHO.