AutoMapper Tutorial

Ignore Properties

You can configure AutoMapper, that it will ignore some properties during copying.

It can be usefull, for example, if you get some object from EntityFramework and want to create object copy for cache.

Here is example:

using System; using AutoMapper; public ...

We configure AutoMapper to ignore property B during copying.

Page 4 of 7