CsvHelper - read in multiple columns to a single list

前端 未结 4 560
梦如初夏
梦如初夏 2020-12-14 11:18

I\'m using CSVHelper to read in lots of data

I\'m wondering if it\'s possible to read the last n columns in and transpose them to a list



        
4条回答
  •  独厮守ぢ
    2020-12-14 12:18

    Version 3 has support for reading and writing IEnumerable properties. You can use an IList property just like you have. You just need to specify the start index of the field.

    Map( m => m.Attributes ).Index( 2 );
    

提交回复
热议问题