… what AutoMapper can do for you

Writing code to map one type object to another has to be the worse code to write.   It’s a necessary part of many applications though and I highly value the outcome.

To alleviate the pain of writing the mapping code, Jimmy Bogard has been working on AutoMapper.  As he explains in his introduction post, AutoMapper will automatically match properties based on property name, nested property names and a host of other rules.  Of course, it supports custom mapping for the (hopefully) rare cases.  It also includes validation functionality to ensure that every property of the destination type can be mapped to a property on the source type (think StructureMap’s AssertConfigurationIsValid function).

I intend to dig much deeper into AutoMapper soon.   Stay tuned.


~ by Bob Banks on 06/04/2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: