title: AutoMapper: Problem with mapping records type
body: <p>I am mapping with automapper 10.1.1 in c# 9 from this class</p>
  <pre><code>public record BFrom 
  {
      public Guid Id { get; init; }
      public Guid DbExtraId { get; init; }
  }
  </code></pre>
  <p>into this</p>
  <pre><code>public record ATo(Guid Id, Guid ExtraId) : BaseTo(Id);
  </code></pre>
  <p>And have the following configuration</p>
  <pre><code>CreateMap&lt;BFrom, ATo&gt;()
      .ForMember(&quot;ExtraId&quot;, opt =&gt; opt.MapFrom(src =&gt; src.DbExtraId))
      .ReverseMap();
  </code></pre>
  <p>But I have a problem when I am trying to map it throws an exception with a message that needs to have a constructor with 0 args or only optional args. Is it possible to fix this problem without changing the record types?</p>