コード例 #1
0
        public IList<SPSearchExpression> Invoke(SPSearchExpressionParameter parameter)
        {
            IQuery query = Session.GetNamedQuery("SP_Search_Expression");
                                        query.SetParameter("pageSize", parameter.pageSize);
                                                query.SetParameter("pageIndex", parameter.pageIndex);
                                                query.SetParameter("catalogID", parameter.catalogID);
                                                query.SetParameter("keyWords", parameter.keyWords);
                                                query.SetParameter("orderClick", parameter.orderClick);
                                                query.SetParameter("orderRecommend", parameter.orderRecommend);
                                                query.SetParameter("orderCreateDate", parameter.orderCreateDate);

                        query.SetResultTransformer(new NHibernate.Transform.AliasToBeanResultTransformer(typeof(SPSearchExpression)));

            IList<SPSearchExpression> records = query.List<SPSearchExpression>();
            return records;
        }
コード例 #2
0
 public IList<SPSearchExpression> Invoke(SPSearchExpressionParameter parameter)
 {
     IList<SPSearchExpression> records = dalSPSearchExpression.Invoke(parameter);
     return records;
 }