Skip to content

Instantly share code, notes, and snippets.

@craigeddy
Last active November 25, 2019 16:52
Show Gist options
  • Save craigeddy/1dec7a36c06d7ad115e7e38e9c0a3cef to your computer and use it in GitHub Desktop.
Save craigeddy/1dec7a36c06d7ad115e7e38e9c0a3cef to your computer and use it in GitHub Desktop.
How to tell AutoMapper to ignore a destination property
cfg.CreateMap<T<S>, T<D>>().ForMember(d => d.XYZ, opt => opt.Ignore())‎‎​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment