摘要: 两个以上or 的实现方法 利用Disjunction方法可以实现 crit.Add(Expression.Disjunction() .Add(Expression.Eq("order_state", 1)) .Add(Expression.Eq("order_state", 2)) .Add(Expression.Eq("order_state", 0)) ); 阅读全文
posted @ 2012-12-08 10:04 莫等闲也 阅读(429) 评论(0) 推荐(0) 编辑
摘要: NHibernate.Criterion方法解释HQL运算符QBC运算符含义=Restrictions.eq()等于equal<>Restrictions.ne()不等于not equal>Restrictions.gt()大于greater than>=Restrictions.ge()大于等于greater than or equal<Restrictions.lt()小于less than<=Restrictions.le()小于等于less than or equalis nullRestrictions.isnull()等于空值is not nul 阅读全文
posted @ 2012-12-08 09:49 莫等闲也 阅读(239) 评论(0) 推荐(0) 编辑