title: Automapper error in time of object population
body: <p>I have a table in SQL Server with following design:</p>
  
  <pre><code> Name VARCHAR(50)
   Duration TIME(7)
   Status VARCHAR(10)
  </code></pre>
  
  <p>The data in the table is as following:</p>
  
  <pre><code> ABCD_TT 00:00:24:6823454 PASS
  </code></pre>
  
  <p>I have the following DTO in my application:</p>
  
  <pre><code>public class Entity
  {
      public string Name { get; set; }
      public TimeSpan Duration { get; set; }
      public string Status { get; set; }
  }
  </code></pre>
  
  <p>I am using AutoMapper to map data to Objects. Following is the code:</p>
  
  <pre><code>IDataReader dr = dataAccess.ExecuteDataReader(sQuery);
  lstData = AutoMapperUtil&lt;Entity&gt;.MapObject(dr);
  </code></pre>
  
  <p>I am encountering the following error:</p>
  
  <p>"Invalid attempt to call FieldCount when reader is closed".</p>
  
  <p>What could be the reason of this error ? How I could perform the above mapping?</p>