Exemplo n.º 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);
        }
Exemplo n.º 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);
        }