Category Archives: automapper

Teaching AutoMapper about our conventions

I often need to send data from my entities to the client in JSON format to enable rich AJAX functionality. It isn’t practical to serialize the entities directly, so they are first flattened to a data transfer object (DTO) before … Continue reading 

Also posted in conventions | 2 Comments

AutoMapper for Silverlight 3.0 Alpha

In between workshops here at the MVP Summit, I’ve been working on pushing out an early Alpha for an AutoMapper version built against Silverlight 3.0.  Thanks to some existing patches from the community, it was pretty straightforward to get things … Continue reading 

| 8 Comments

AutoMapper 1.0 RTW

AutoMapper is now officially 1.0.  You can go grab the latest binaries here: AutoMapper 1.0 RTW Here are the release notes: New Features Changing the null substitute method name and allow any type of null substitute Consolidating custom constructor configuration … Continue reading 

| 9 Comments

AutoMapper DSL design post-mortem

As I move towards the 1.0 release of AutoMapper, I’m already running in to things I wish I had done differently.  I still will probably fix all of these eventually, but none of these design issues should prevent a release, … Continue reading 

| 5 Comments

Automapper Auto Profile Registration.

  On some of our projects we have been experimenting with smaller AutoMapper profiles.  The idea is that it is easier to digest a smaller profile. We have gone so far as creating a profile for each Domain object and … Continue reading 

| Leave a comment

An AutoMapper success story

I got a cool message on the AutoMapper mailing list from Howard Van Rooijen on how they used AutoMapper in a site they recently launched to production: Hello AutoMapper Community, I just wanted to let you know that an e-commerce … Continue reading 

| 6 Comments

The case for two-way mapping in AutoMapper

I’m getting more and more requests around the area of two-way mapping, meaning you’d do something like: Product –> ProductDTO ProductDTO –> Product Product being an entity, I can’t for the life of me understand why I’d want to dump … Continue reading 

| 43 Comments

AutoMapper 1.0 RC1 released

It’s been quite a long journey with AutoMapper, with the origins written just over a year ago now.  I’ve focused on stability and performance since the 0.3.1 release back in May, and from here to the 1.0 release, I’ll just … Continue reading 

| 8 Comments

Analyzing AutoMapper performance

One of the last things I wanted to look at AutoMapper before pushing it out to production was to get some idea of how it performed.  One of the more difficult things in doing this is trying to come up … Continue reading 

| 7 Comments

How we do MVC – View models

A while back, I went over a few of the patterns and opinions we’ve gravitated towards on our current large-ish ASP.NET MVC project, or, how we do MVC.  Many of these opinions were forged the hard way, by doing the … Continue reading 

| 69 Comments