tags:

views:

45

answers:

1

I'm trying to map one object to another but the object is quite complex and so during dev I'd like the ability to either exclude a bunch of fields and get to them one by one or to be able to specify to map only fields I want and increase that as each test succeeds.

So;

class    
    string field1    
    string field2    
    string field3

Now I'd like to map field1, test, fix and then move onto field2 then field3.

Is this possible?

+2  A: 

.ForMember(dto => dto.field1, opt => opt.Ignore());

Fulvio
+1 Yeah I just found this too. Thanks for the answer tho.
griegs