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); }
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); }