title: The following error occurred when I was using AutoMapper
body: <p>Development environment:</p>
  
  <p>AutoMapper：7.0.1
  NetCore:2.1</p>
  
  <p>Wrong content:
  Unmapped members were found. Review the types and members below.
  Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type
  For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters</p>
  
  <p>My Model:</p>
  
  <pre><code>public partial class XsOrdersitems
      {
          public int Id { get; set; }
          public string ParentNo { get; set; }
          public string GoodsSn { get; set; }
          public string Name { get; set; }
          public string Barcode { get; set; }
      }
  </code></pre>
  
  <p>My DTO type：</p>
  
  <pre><code>public class DTOOrderItem
      {
          public string OrderPaNo { get; set; }
          public string OrderNo { get; set; }
          public string OrderNe { get; set; }
          public string OrderComm { get; set; }
      }
  </code></pre>
  
  <p>My mapping configuration：</p>
  
  <pre><code>reateMap&lt;DTOOrderItem, XsSalesitems&gt;()
       .ForMember(d =&gt; d.Id, opt =&gt;opt.Ignore())
       .ForMember(d =&gt; d.Name, opt =&gt; { opt.MapFrom(s =&gt; s.OrderNe); })
       .ForMember(d =&gt; d.GoodsSn, opt =&gt; { opt.MapFrom(s =&gt; s.OrderNo);})          
       .ForMember(d =&gt; d.ParentNo, opt =&gt; { opt.MapFrom(s =&gt;s.OrderPaNo);})
       .ForMember(d =&gt; d.Comment, opt =&gt; { opt.MapFrom(s =&gt; s.OrderComm); });
  </code></pre>
  
  <p>I tried to use opt. <code>Ignore()</code> to ignore the unconfigured mapping attributes, but still reported the above error, please help me, thank you for your time to answer my question.</p>