public FeedbackVO[] Collection(DataTable table) { int length = table.Rows.Count; FeedbackVO[] result = new FeedbackVO[length]; for (int i = 0; i < length; i++) { result [i] = new FeedbackVO (); } return result; }
FeedbackVO Init(DataRow dr) { if (dr == null) return null; FeedbackVO VO = new FeedbackVO (); VO.feedId = dr["feed_id"] as string; VO.context = dr["context"] as string; VO.addtime = Convert.ToInt32(dr["addtime"]); VO.name = dr["name"] as string; VO.email = dr["email"] as string; VO.mobile = dr["mobile"] as string; return VO; }