DataRowView to bean

 

     var query = from DataRowView drv in dataView

    select new  wipBean  {

lot_number = GetCellValue< string>(drv.Row,"lot_number"),

crt_dat = GetCellValue< string>(drv.Row,"crt_dat"),

mvin_dt = GetCellValue< int?>(drv.Row,"mvin_dt"),

Ship_date = GetCellValue< DateTime?>(drv.Row,"ship_date")

};

    return query.ToList<wipBean>();

留言

熱門文章