public class Entity
{
public virtual string Title { get; set; }
public virtual DateTime CreationDate { get; set; }
public virtual int Count { get; set; }
}
I have a problem when creating Criteria for a given entity:
var s = session.CreateCriteria<Entity>()
.Add(Expression.Ge("CreationDate", DateTime.UtcNow));
var result = s.List<Entity>();
throws "could not resolve property: CreationDate" exception. Please don't tell me that DateTime isnt supported by criteria api :( Adding same GE criteria for int property works well.
UPDATE: Guess what... I forgot to add CreationDate property to my mapping :) I think I need to take a break ;).