コード例 #1
0
        public static TopicTinCollection SelectAll()
        {
            TopicTinCollection List = new TopicTinCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "tblRss_sp_tblRssTopicTin_Select_SelectAll_linhnx"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
コード例 #2
0
        public static TopicTinCollection SelectByTopicId(string TpId)
        {
            TopicTinCollection List = new TopicTinCollection();

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