public void LessOrEqualThen_Success() { ICriteriaBuilder cb = EJBContainer.Instance.EntityManager.GetCriteriaBuilder(); ICriteriaQuery cq = cb.CreateQuery(); IRoot r = cq.From("Students"); IPredicate exp = cb.LessOrEqualThen(r.Get("SequenceNumber"), cb.Literal("2")); Assert.AreEqual("Students.SequenceNumber <= 2", exp.ExpressionValue); }