could not resolve property: Date of: using DateTimeOffset (NHibernate 3.2.0.4000) -


While trying to use the property of date a recently received an exception from NHibernate

Property
  var v1 = nh session. & Lt; MyType & gt; Where (o = & gt; o.DateTimeOffsetProperty.Date == DateTime Offset.Net.Det) .Oolist ();   

I would have thought that this would be "just work". What is the best solution to this problem?

I have created a HQL generator that contains BuildHql in the following: return p_treeBuilder.MethodCall ("Date", New Html Expression [] {(Alex Expression) p_visitor.Visit (p_expression)});

This is working, but I want to know that it has already been made and I am missing it. Thanks!

Comments