title: Generate c# model class from csv file structure
body: <p>The goal here is that after inputing csv file, a magic tool would output c# class with the fields from csv. Let's look at example.</p>
  
  <p>Input myFile.csv:</p>
  
  <pre><code>Year,Make,Model
  1997,Ford,E350
  2000,Mercury,Cougar
  </code></pre>
  
  <p>Output myFile.cs</p>
  
  <pre><code>public class myFile
  {
     public string Year;
     public string Make;
     public string Model;
  }
  </code></pre>
  
  <p>So, the only thing I would need to fix is the types of properties. After that I would use this class with FileHelpers to read csv file. Later it would be mapped to EntityFramework class (using AutoMapper) and saved to database.</p>
  
  <p>Actually, <a href="https://csv2entity.codeplex.com/" rel="noreferrer">https://csv2entity.codeplex.com/</a> looks like is doing what I need, but it just doesn't work - I installed it and nothing changed in my Visual studio, no new template appeared. The project is totally dead. Opened source code and ... decided maybe I'll just ask this question in stackoverflow :)</p>
  
  <p>FileHelpers has only a simple wizard, which allows you to manually add fields. But I have 50 fields and this is not the last time I will need to do it, so automated solution is preferred here.</p>
  
  <p>I believe this problem is solved many times before, any help?</p>