예제 #1
0
        public FriendLinkCategoryInfo GetDataById(int fc_id)
        {
            FriendLinkCategoryInfo info   = new FriendLinkCategoryInfo();
            IDataReader            reader = db.GetDataByID(fc_id).CreateDataReader();

            if (reader.Read())
            {
                info = FriendLinkCategoryInfo.Populate(reader);
            }
            return(info);
        }
예제 #2
0
        public List <FriendLinkCategoryInfo> GetDataByLid(int lid)
        {
            List <FriendLinkCategoryInfo> infos = new List <FriendLinkCategoryInfo>();
            IDataReader reader = db.GetDataByLid(lid).CreateDataReader();

            while (reader.Read())
            {
                infos.Add(FriendLinkCategoryInfo.Populate(reader));
            }
            return(infos);
        }