示例#1
0
        public static LinhVucCollection SelectAll()
        {
            LinhVucCollection List = new LinhVucCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblLinhVuc_Select_SelectAll_linhnx"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
示例#2
0
        public static LinhVucCollection SelectTree(string q)
        {
            LinhVucCollection List = new LinhVucCollection();

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