NHibernate 中Between的使用方法

     public virtual ArrayList QueryEmployeeDemissionSettlementListByExec(DateTime begin,DateTime end)
        {
            using (ISession session = OpenSession())
            {
                return (ArrayList)session.CreateCriteria(typeof(EmployeeDemissionInfo)).Add(Expression.Eq("SettlementStatus", ExecuteStatus.Executed)).Add(Expression.Between("SettlementDate", begin, end)).List();
            }
        }

 

posted @ 2012-08-29 23:05  Tom Fan  阅读(409)  评论(0编辑  收藏  举报