Hi
I'm facing an issue using DateTime property Year. I'm receiving this
message error: NHibernate.QueryException : could not resolve property:
Register.Year of: Estudantino.Domain.Events
In Events class, i'm defining Register like this:
public virtual DateTime Registada { get; set; }
And i'm receiving the error from this query:
using (ISession session = NHibernateHelper.OpenSession())
{
return session.QueryOver<Evento>()
.Where(x => x.Register.Year == year)
.List();
}
I only get the error message if i use the property Year of Register.
What should i do to query using the year?
Thanks
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.