ICriteria iCriteria = DataAccessHelper.GetSession().CreateCriteria(typeof(T))
.Add(Expression.Lt("Id", InitialIndex))
.Add(Expression.Eq("Member", member))
.Add(Expression.Eq("Action.class", typeof(U)))
.SetMaxResults(MaxResult)
.AddOrder(Order.Desc("Id"));
I basically wanna create a criteria that can filter the Action object by his implement class. But when I run this throws the following exception.
{"could not resolve property: Action.class of: Classes.MemberAction"}
The class MemberAction contains:
public class MemberAction {
Int64 Id;
Member member;
Action action;
IDictionary<string,string> Attributes;
etc.....
}
and the class Action is the base of 4 other classes