Exemplo n.º 1
0
        public IList<SPSearchBlogs> Invoke(SPSearchBlogsParameter parameter)
        {
            IQuery query = Session.GetNamedQuery("SP_Search_Blogs");
                                        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(SPSearchBlogs)));

            IList<SPSearchBlogs> records = query.List<SPSearchBlogs>();
            return records;
        }
Exemplo n.º 2
0
 public IList<SPSearchBlogs> Invoke(SPSearchBlogsParameter parameter)
 {
     IList<SPSearchBlogs> records = dalSPSearchBlogs.Invoke(parameter);
     return records;
 }