Ejemplo n.º 1
0
        public IList<SPListBlogs> Invoke(SPListBlogsParameter parameter)
        {
            IQuery query = Session.GetNamedQuery("SP_List_Blogs");
                                        query.SetParameter("pageSize", parameter.pageSize);
                                                query.SetParameter("pageIndex", parameter.pageIndex);
                                                query.SetParameter("recordType", parameter.recordType);
                                                query.SetParameter("catalogID", parameter.catalogID);
                                                query.SetParameter("dateBefore", parameter.dateBefore);

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

            IList<SPListBlogs> records = query.List<SPListBlogs>();
            return records;
        }
Ejemplo n.º 2
0
 public IList<SPListBlogs> Invoke(SPListBlogsParameter parameter)
 {
     IList<SPListBlogs> records = dalSPListBlogs.Invoke(parameter);
     return records;
 }