title: Transferring incoming data to the model in Automapper
body: <p>I want to do something like this at Automapper.</p>
  
  <p>I want to transfer the list from the database to the following model.</p>
  
  <pre><code>public class GetListModel
  {
      public int RowNumber { get; set; } = 0;
      public object Records { get; set; }
  }
  </code></pre>
  
  <p>Namely;
  Data from the database</p>
  
  <pre><code>Name, Surname, Phone, Email, RowNumber
  </code></pre>
  
  <p>I want to take the Row Number from this list and write it to "RowNumber" in "GetListModel".</p>
  
  <p>And. I want to write the other data to "Records" as a list.</p>
  
  <p>Consequently it should look like this.</p>
  
  <pre><code>GetListModel{
              int RowNumber = 20,
              object Records = List&lt;User&gt; [
                                              {Name=Ali1,Surname=Kara,Email=mail@mail.mail,Phone=05553333333},
                                              {Name=Ali2,Surname=Kara,Email=mail@mail.mail,Phone=05553333333},
                                              {Name=Ali3,Surname=Kara,Email=mail@mail.mail,Phone=05553333333},
                                              {Name=Ali4,Surname=Kara,Email=mail@mail.mail,Phone=05553333333},
                                              {Name=Ali5,Surname=Kara,Email=mail@mail.mail,Phone=05553333333},
                                              {Name=Ali6,Surname=Kara,Email=mail@mail.mail,Phone=05553333333}
                                              ...
                                          ]
                                          }
  </code></pre>
  
  <p>Please help me.</p>
  
  <p>Normally I do this to transfer the list directly to the model.</p>
  
  <pre><code>return new MapperConfiguration(cfg =&gt; { cfg.CreateMap&lt;sp_Panel_Get_Orders_Result, OrderModels.For.Panel.ListModel.Order&gt;(); })
  .CreateMapper().Map&lt;List&lt;sp_Panel_Get_Orders_Result&gt;, List&lt;OrderModels.For.Panel.ListModel.Order&gt;&gt;(Get);
  </code></pre>