public FollowVO[] Collection(DataTable table) { int length = table.Rows.Count; FollowVO[] result = new FollowVO[length]; for (int i = 0; i < length; i++) { result [i] = new FollowVO (); } return result; }
FollowVO Init(DataRow dr) { if (dr == null) return null; FollowVO VO = new FollowVO (); VO.openId = dr["open_id"] as string; VO.nickname = dr["nickname"] as string; VO.sex = dr["sex"] as string; VO.province = dr["province"] as string; VO.city = dr["city"] as string; VO.country = dr["country"] as string; VO.headimgurl = dr["headimgurl"] as string; VO.group = dr["group"] as string; VO.createtime = Convert.ToInt32(dr["createtime"]); return VO; }