I recently got an exception from NHibernate when trying to access the Date
property of a DateTimeOffset
property.
var v1 = nhSession.Query<MyType>.Where(o => o.DateTimeOffsetProperty.Date == DateTimeOffset.Now.Date).ToList();
I would have thought this would have "just worked." What is the best solution to this problem?