This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.CsvHelper.
Summary
Reads records from a CSV returning a list of the object type passed. Automapping is used if a Map is configured in settings.
Syntax
public IEnumerable<T> ReadRecords<T>(FilePath csvFile, ClassMap classMap, CsvHelperSettings settings)
Type Parameters
Name |
Description |
T |
The record type. |
Parameters
Name |
Type |
Description |
csvFile |
FilePath |
The CSV file to read. |
classMap |
ClassMap |
The class map to use, null if not needed. |
settings |
CsvHelperSettings |
The settings. |
Return Value
Type |
Description |
IEnumerable<T> |
List of defined type. |