I have a CSV and some of the headers have spaces or symbols in, eg. Country Name or Post/Zip Code
I'm using some code like this to import it by mapping it to CatRecord
objects:
FileHelperEngine<CatRecord> engine = new FileHelperEngine<CatRecord>();
engine.Options.IgnoreFirstLines = 1;
var files = Directory.GetFiles(filePath);
var catRecords = engine.ReadFile(files.Single());
I create a field in my class but I need to tell it to map it to "Country Name".
I found another question that said use [FieldTitle]
however no such attribute exists in the FileHelpers namespace. I'm using the latest one via NuGet (version 2 I think).
Any ideas?