I am trying to make a LINQ statement where the where clause is a string variable. For example:
string whereClause = "(Code = '12') AND (Name = 'a')" ;
var referreds = from r in _db.Referreds where whereClause;
Edit: I have a model with 30 property, i want to created search for this model. I want to select items where user insert value for every property.
For example, where user insert value for Code&Name&Family serach with this propertie, and where user insert value for Gender,Name,Study,Degree serach with this.
which is Better solution for this?