title: Lambda expression null
body: <p>This is what I have</p>
  
  <p><code>Mapper.CreateMap&lt;Domain.Code.CodeSection, EF.Code.CodeSection&gt;().ForMember(dest =&gt; dest.Parent, opt =&gt; opt.MapFrom(src =&gt; src.Parent.Id));</code></p>
  
  <p>This doesn't compile because <code>src.Parent.Id</code> is an <code>Int</code> and <code>dest.Parent</code> is an object.</p>
  
  <p>All I want is to set <code>dest.Parent</code> to <code>null</code>.</p>
  
  <p>Something like <code>Mapper.CreateMap&lt;Domain.Code.CodeSection, EF.Code.CodeSection&gt;().ForMember(dest =&gt; dest.Parent, opt =&gt; opt.MapFrom(src =&gt; null));</code></p>