title: AutoMapper and IDataReader
body: <p>I would like to map data from <code>IDateReader</code> to some class but can not do it simply.  I wrote the following code: </p>
  
  <pre><code> cfg.CreateMap&lt;IDataReader, MyDto&gt;()
        .ForMember(x =&gt; x.Id, opt =&gt; opt.MapFrom(rdr =&gt; rdr["Id"]))
        .ForMember(x =&gt; x.Name, opt =&gt; opt.MapFrom(rdr =&gt; rdr["Name"]))
        .ForMember(x =&gt; x.Text, opt =&gt; opt.MapFrom(rdr =&gt; rdr["Text"]));
  </code></pre>
  
  <p>UPD: I tried to use Automapper.Data from Nuget but it depends on 
  NETStandard.Library but I use .NET Framework 4.5
  But this way is bad for me because I have to describe mapping rule for each column. Is it possible to avoid describing all of these rules? </p>