Referencing columns in LinqToExcel using ordinal position
问题 I am in the unusual position of having two different templates for an Excel upload, one that is 'human friendly' and one that is machine generated. As such, the column data headers are different and it is difficult to align them. As such, I would like to reference the column mappings using the ordinal position rather than the 'name' of the column. Currently I have this: var excel = new ExcelQueryFactory(excelFileName); excel.AddMapping<Student>(x => x.FirstName, "First Name"); excel