Baiju christadima wrote:
List<AuctionUpsert> list = new List<AuctionUpsert>();
IEnumerable records = list;
writer.WriteRecords(records);
While I am doing this Only the field names in the DataSet class are shown in the CSV file. I want the value of each fields in the CSV file.
You've passed an empty list to the
WriteRecords
method. There are no values to write.
If you want to write some data to the CSV file, then you'll need to pass that data to the
CsvWriter
.