コード例 #1
0
ファイル: FeedbackMapper.cs プロジェクト: justinfoxmail/wxipr
 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;
 }
コード例 #2
0
ファイル: FeedbackMapper.cs プロジェクト: justinfoxmail/wxipr
 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;
 }