title: Convert DataTable to List<T>
body: <p>I have a doubt, sometime I made this conversion from <code>DataTable</code> to <code>List&lt;T&gt;</code>:</p>
  
  <pre><code>  List&lt;EDog&gt; lstDogs = (from drRow in dsDogs.Tables[0].AsEnumerable()
                          select new EDog()
                          {
                              intIdDog = drRow.Field&lt;int&gt;("IdDog"),
                              intIdOwner = drRow.Field&lt;int?&gt;("IdOwner"),
                              intAge = drRow.Field&lt;int&gt;("Age"),
                              strName = drRow.Field&lt;string&gt;("Name")
                         }).ToList();
  </code></pre>
  
  <p>This worked fine, but now I'm thinking about doing it generic, so that any type of DataSet could be converted to a strongly typed list.</p>
  
  <p>How could I make it generic? maybe a delegate surrounding this part and creating the object?</p>
  
  <pre><code>new EDog()
  {
      intIdDog = drRow.Field&lt;int&gt;("IdDog"),
      intIdOwner = drRow.Field&lt;int?&gt;("IdOwner"),
      intAge = drRow.Field&lt;int&gt;("Age"),
      strName = drRow.Field&lt;string&gt;("Name")
  }
  </code></pre>
  
  <p>I tried it but get an error: </p>
  
  <pre><code>select (lambda) expected....
  </code></pre>
  
  <p>Any suggestion?</p>
  
  <p>The reason why I need this is because each DataRow of the result, needs to be converted to an Entity for better manipulation.</p>