title: Convert database row into object
body: <p>I have a table in my database with 2 rows of employee data.</p>
  
  <pre><code>...........
  
  ID |  Name
  
  ...........
  
  1 | Jon Doe
  
  2 | Jane Doe
  
  ...........
  </code></pre>
  
  <p>I need this in my code, just like this, as <strong>code</strong>. I need to convert this into:</p>
  
  <pre><code>Employee e1 = new Employee();
  e1.ID = 1;
  e1.Name = "Jon Doe";
  
  Employee e2 = new Employee();
  e2.ID = 2;
  e2.Name = "Jane Doe";
  </code></pre>
  
  <p>Now it is code it can be saved into a database when the app runs for the first time, and thus save me from writing 1200 object instances into the database.
  Therefore, I just need some way, such as using XML) on the first run.</p>
  
  <p>This is an example, why I need it is because, I have a table that stores settings (width,height,label for grid) etc that need to be set to something first time
  the app runs.</p>
  
  <p>What way could I generate this, are there any tools available, or how would you go about it?</p>