Exemplo n.º 1
0
        public static ThuvienCollection SelectAll()
        {
            ThuvienCollection List = new ThuvienCollection();

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

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