Help me please. How can I filter a collection of objects when filtering parameters can be more than 10 and need to check them for the contents of values (all parameters are nullable)? Tried with ICriteria chain checking and adding Restrictions. But I do not like magic strings and in one case I need to get access to the internal field of the class. For example, the method
public string(int? firstParam, int? secondParam, int? thirdParam, int? fourthParam, int? fiveParam, int? sixthParam, int? seventhParam, DateTime? time) { var session = DbSession.JoinOrOpen(); var collection = session.Linq<ObjectWithManySettings>()... // Либо через лямбда методы collection = from item in session.Linq<ObjectWithManySettins> }