Im new in LINQ,i need to pass different conditions on the same LINQ query like:
var rslt = (from t in cr.faultStat
where(parameter)
select new{
name=t.Name,
Fname=t.fname
});
the parameter seen in the where ,is the part i want to send conditions dynamicaly but i dont know how,because where accepts boolean,but i want to send something like:
string parameter="date>"2018-10-10" && id="123"
generally how should i send parameter to linq dynamically