We tried to write a filter based on a DateTime? (nullable DateTime) property like
IList<Vacancy> vacancies = manager.Get<Vacancy>(v => v.StartDate.GetValueOrDefault(DateTime.MinValue) < DateTime.Today);
But NHibernate (or possibly NHibernate.Linq) threw a runtime error. It turns out that NHibernate(.Linq) handles all this for us so
IList<Vacancy> vacancies = manager.Get<Vacancy>(v => v.StartDate < DateTime.Today);
Works perfectly!
314c30d1-540c-4488-aa1f-2c11261b7992|0|.0