Hi Is there any elegant way of combining \'like\' and \'or\' when i\'m using queryover API? for \'like\' there is something like:
query.WhereRestrictionOn(
Another version of this, which depending on taste, you may like, is as follows:
query.Where(Restrictions.Disjunction() .Add(Restrictions.On(e => e.Code).IsLike(codePart)) .Add(Restrictions.On(e => e.Description).IsLike(codePart)));