title: The differences between a normal map with dynamic map - automapper
body: <p>What are the differences between the codes below;</p>
  
  <pre><code>    List&lt;Ogrenci&gt; ogrenci = AutoMapper.Mapper.DynamicMap&lt;IDataReader,   List&lt;Ogrenci&gt;&gt;((dt.CreateDataReader()));
  
      var ogr = AutoMapper.Mapper.Map&lt;IDataReader, IList&lt;Ogrenci&gt;&gt;(dt.CreateDataReader());
  </code></pre>
  
  <p>When i try to use the code below;</p>
  
  <pre><code> AutoMapper.Mapper.CreateMap&lt;IDataReader, Ogrenci&gt;().ForMember(dest =&gt; dest.Numarasi, opt =&gt; opt.MapFrom(src =&gt; Convert.ToInt32(src["Numara"])))
              .ForMember(dest =&gt; dest.Adi, opt =&gt; opt.MapFrom(src =&gt; Convert.ToString(src["Ad"])))
              .ForMember(dest =&gt; dest.Soyadi, opt =&gt; opt.MapFrom(src =&gt; Convert.ToString(src["Soyad"])));
  
          List&lt;Ogrenci&gt; ogrenci = AutoMapper.Mapper.DynamicMap&lt;IDataReader, List&lt;Ogrenci&gt;&gt;((dt.CreateDataReader()));
          var ogr = AutoMapper.Mapper.Map&lt;IDataReader, IList&lt;Ogrenci&gt;&gt;(dt.CreateDataReader());
  </code></pre>
  
  <p>I can not use use the code below;</p>
  
  <pre><code>  List&lt;Ogrenci&gt; ogrenci = AutoMapper.Mapper.DynamicMap&lt;IDataReader, List&lt;Ogrenci&gt;&gt;((dt.CreateDataReader()));
  </code></pre>
  
  <p>but i can use the code below ;</p>
  
  <pre><code>   var ogr = AutoMapper.Mapper.Map&lt;IDataReader, IList&lt;Ogrenci&gt;&gt;(dt.CreateDataReader());
  </code></pre>
  
  <p>What are your suggestions?</p>
  
  <p>Thank you.</p>