Exemplo n.º 1
0
        public static ThuVienAnhCollection SelectTopTen()
        {
            ThuVienAnhCollection List = new ThuVienAnhCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblThuVienAnh_Select_SelectTopTen_linhnx"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
Exemplo n.º 2
0
        public static ThuVienAnhCollection SelectDanhSachHome(int top)
        {
            ThuVienAnhCollection List = new ThuVienAnhCollection();

            SqlParameter[] obj = new SqlParameter[1];
            obj[0] = new SqlParameter("top", top);
            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "tblRss_sp_tblRssTVA_Select_SelectDanhSachHome_linhnx", obj))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }