csvhelper Questions

6

I have this csv file i need to be able to read and I cant get it to work. here is the csv and a picture of csv. Im not sure what the problem is, I have been following the tutorials so I have a gues...
Jail asked 8/6, 2021 at 12:18

4

I'm currently trying to parse a value from a csv file that is a boolean. We've noticed that the value will successfully parse Yes and Y (in any case) but will not parse No and N I'm mapping the va...
Bogy asked 27/10, 2017 at 8:29

11

I recently installed CsvHelper (https://joshclose.github.io/CsvHelper/) when i try to use the library I get the following error: Could not load file or assembly 'System.Threading.Tasks.Extension...
Bantling asked 12/2, 2020 at 17:53

4

I am using the CsvHelper library to generate a CSV file from an IEnumerable<Person>, where Person is a basic class. public class Person { public string DisplayName { get; set; } public int...
Giacopo asked 25/9, 2017 at 13:19

4

Solved

I have a class of User, which can have several contact numbers. I am using CsvHelper to generate a report on the users, which will create a CSV file of the User's name and contact details. Each con...
Gaddis asked 16/6, 2015 at 8:49

2

Solved

I want to read a CSV file that has some optional columns, for that I have defined a class with optional property using "?" but can't make it work. public class MyItem { public int Id { get; set...
Ignatia asked 12/4, 2019 at 15:52

5

Solved

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 "Name","LastName","Attribute1","Attribute2","Attribute3" An...
Spurgeon asked 27/6, 2013 at 21:23

5

Solved

I tried to write to CSV file using CsvHelper in C#. This is the link to the library http://joshclose.github.io/CsvHelper/ I used the code in web site. Here is my code: var csv = new CsvWriter(w...
Jacqualinejacquard asked 21/4, 2014 at 7:12

6

Solved

public interface ICsvProductReaderConfigurationFactory { Configuration Build(); } public class CsvProductReaderConfigurationFactory : ICsvProductReaderConfigurationFactory { private readonly Cla...
Occam asked 1/10, 2018 at 11:11

4

Solved

I've put together a CSV importer which I assume works, though I get this error, how do I allow this column to be null so when it adds it to the table it automatically sets the ID? I've tried: csv....
Lauraine asked 21/1, 2018 at 17:5

7

Solved

So I've been reading that I shouldn't write my own CSV reader/writer, so I've been trying to use the CsvHelper library installed via nuget. The CSV file is a grey scale image, with the number of ro...
Malka asked 23/10, 2015 at 4:10

4

Solved

I was wondering if CsvHelper by Josh Close has anything in the configuration I am missing to translate values to null. I am a huge fan of this library, but I always thought there should be some sor...
Ileenileitis asked 11/9, 2013 at 6:8

4

Solved

I'm trying to use CSVHelper to generate a CSV file and send it back to a browser, so the user can select a save location and filename and save the data. The website is MVC based. Here' the jQuery...
Purim asked 13/1, 2014 at 14:2

3

I have a list of Dictionary with same list of keys, but different value. Is there a way to write that to CSV file using the CSVHelper? I have the sample code below, but obviously it didn't work. s...
Italicize asked 29/8, 2020 at 18:2

2

Solved

I would like to be able to iterate through all records in a CSV file and add all the good records to one collection and handle all the "bad" ones separately. I don't seem to be able to do this and ...
Mandrel asked 20/10, 2017 at 12:7

1

I'm using CSVHelper (thanks Josh Close) to read a CSV file which works great. I'm now trying to use it to map that file to some internal classes; however, the CSV's I'm mapping vary by customer but...
Possession asked 1/11, 2018 at 18:1

5

Solved

I am trying to read a tab delimited CSV file and parse it with CSVHelper. I have the following : _reader = new StreamReader(_stream); _csvReader = new CsvReader(_reader); _csvReader.Configurat...
Oca asked 1/3, 2020 at 12:13

2

Solved

I am using CsvHelper library to parse CSV data to C# object. So far, I can parse all this class with these 3 columns. public class Foo { public string Id { get; set; } public decimal Amount { get...
Unwieldy asked 10/2, 2021 at 13:40

1

I need some help ion CSV parsing with CSV Helper in C# my example file is "SKU","Title","URL","BP","SP","NumberOf","Wid1",&quot...
Torrlow asked 24/2, 2021 at 23:48

3

Solved

I have some class public class Import { public DateTime Date { get; set; } public string Category { get; set; } } In csv file header names can be in lowercase. How I can ignore case while readin...
Tishatishri asked 27/3, 2018 at 19:41

3

Solved

I am working with CsvHelper and being able to parse csv file. My question is how can I parse the Date into DateTime object I want to convert it via CsvHelper while it is parsing the csv rather tha...
Gasometry asked 14/3, 2016 at 14:44

7

Solved

I'm working with JSON/CSV files in my ASP.NET Web API project and tried using the CSVHelper and ServiceStack.Text libraries to generate a CSV, but couldn't make it work. The JSON file containing an...
Holp asked 29/3, 2016 at 3:37

3

Solved

I'm starting to use CSV Helper - an excellent little helper for your daily work - great stuff! One item I'm struggling with right now are class maps - I have a little class public class SimpleCla...
Obtrude asked 31/3, 2014 at 13:16

4

Solved

Trying to read a CSV file that has empty rows (usually at the end) using CsvHelper.GetRecords<T>(). Without the empty rows this works a treat. However if the CSV file has an empty row (defi...
Disclimax asked 18/9, 2019 at 10:34

3

I am trying to use CsvHelper library in one of my projects. its just console application. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadi...
Ambagious asked 1/6, 2017 at 17:16

© 2022 - 2025 — McMap. All rights reserved.