This sounds like such a dumb question but I've spent too long looking for the 'Restrictions' object when attempting something like this...
Objects objs = NHibernateSession.CreateCriteria(typeof(Objects ))
.Add(Restrictions.Eq("ObjectName", objName))
I'm using nHibernate 2.2 I believe and have added references nHibernate, log4Net, lesi.Collections to my project and have searched through the object browser to find this elusive class. What am I missing?