예제 #1
0
 public UploadVO[] Collection(DataTable table)
 {
     int length = table.Rows.Count;
     UploadVO[] result = new UploadVO[length];
     for (int i = 0; i < length; i++) {
         result [i] = new UploadVO ();
     }
     return result;
 }
예제 #2
0
 UploadVO Init(DataRow dr)
 {
     if (dr == null)
         return null;
     UploadVO VO = new UploadVO ();
     VO.uploadId = dr["upload_id"] as string;
     VO.title = dr["title"] as string;
     VO.type = dr["type"] as string;
     VO.mediaId = dr["media_id"] as string;
     VO.createdAt = Convert.ToInt32(dr["created_at"]);
     return VO;
 }