Tech Tock

Time is of the essence.


AutoMapper should be called AwesomeMapper.  It does a simple job simply so I can avoid mapping tedium.  It will map between a viewmodel and a DTO in a couple lines of code when the property names are the same and takes lambdas when the names are different or any conversion is involved.

The only thing I could ask for so far is that it could support simple conversions like between decimal and double.

One hint is to set the target to an interface if your target has more properties than your source.  Otherwise you’d have to write an ignore clause for each unmapped field.  Its still quick and easy and the interface documents your mapping in a simple way.

Get it.


July 6, 2010 - Posted by | Uncategorized | ,

No comments yet.

Leave a Reply

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

You are commenting using your 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: