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?
I created an HQL generator that does the following in
BuildHql:This seems to be working, but I’d like to know if this is already built in and I missed it. Thanks!