Los Techies : Blogs about software and anything tech!

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 to just one
  • Adding UseValue option for member mappings when you want to just map from a single custom value
  • Added ValueFormatter<T>

Enhancements

  • Adding custom mapping action objects (in addition to just functions)
  • Removing configuration validation from dynamic mapping
  • Adding overloads for mapping to existing objects for dynamic mapping
  • Modified ITypeConverter to only use ResolutionContext as the input
  • Added TypeConverter to ease generic scenarios
  • Custom value resolvers now have access to the current resolution context
  • Switching the MapFrom from using Expression to just Func, but with the return type retained
  • Some performance improvements around caching and sealing (only for Initialize scenarios)
  • Fixed profiles so you don't have to provide a name (defaults to type name)

Bugs Fixed

  • Fixed bug where a zero-length sequence would throw an exception
  • Applying patch to fix duplicate CreateMap call issue
  • Fixing bug where type map resolution did not attempt to find a map for the underlying member type
  • Fixed bug where destination collections were not cleared before mapping
  • Integrating patch to fix ambiguous match exceptions on multiple IEnumerable implementors
  • Fixed bug where read-only string destination properties had to be marked as ignored
  • Applied patch to fix issue where the DataReader mapper blew up on nullable fields
  • Fixing bug where a bi-directional relationship with an array was messing up
  • Fixed bug where type-specific formatters were not found correctly at the global level

I tried to get all the documentation done…and failed.  Instead, I’m building up a comprehensive set of examples first.  So what’s up for the next release?  Here’s my current plan of action:

  1. Move source to github – DVCS better suited for OSS anyway
  2. Get build/deployment/TeamCity.CodeBetter migrated to github
  3. Add in patches for SL 3.0, CF and Mono (and integrate into the build)
  4. Look at v.next

And as always, if you have any questions, feel free to post them up on StackOverflow or put them on the mailing list.  The mailing list shows up in my inbox, while the SO posts show up in my feed reader, so I may not personally answer SO posts right away (but others tend to first).  Enjoy!

Kick It on DotNetKicks.com
Posted Feb 01 2010, 05:44 PM by bogardj
Filed under:

Comments

Jeffrey Palermo (.com) wrote AutoMapper hits 1.0! Download now
on 02-01-2010 6:09 PM

Jimmy Bogard just made the announcement that AutoMapper is now 1.0.  Babies grow up so fast.  Jimmy has cultivated this project since it’s infancy, although I think almost everyone from Headspring has at least one commit (I think I had a total

Philip Laureano wrote re: AutoMapper 1.0 RTW
on 02-01-2010 11:52 PM

Congratulations on hitting 1.0, Jimmy! If you ever need anything with LinFu.DynamicProxy, just let me know.

Regards,

Philip Laureano

Rudy Dahbura wrote re: AutoMapper 1.0 RTW
on 02-02-2010 12:11 AM

Great work. I've been using AutoMapper and its made life much easier.

One comment though, the depency on LinFu.DynamicProxy is causing me some problems when I want to use LinFu.DynamicProxy directly in my code. When referencing LinFu.DynamicProxy in my project, I get ambiguous reference issues.

Do you have any suggestions or is there something I should be doing differently?

Thanks!

Rudy

Paul Kohler wrote re: AutoMapper 1.0 RTW
on 02-02-2010 12:34 AM

Nice work - it's a pretty big milestone to hit V1 for an OS project!!

Congrats - PK  :-)

Shiju Varghese wrote re: AutoMapper 1.0 RTW
on 02-02-2010 1:30 AM

Congrats Jimmy.

The Morning Brew - Chris Alcock » The Morning Brew #530 wrote The Morning Brew - Chris Alcock &raquo; The Morning Brew #530
on 02-02-2010 3:40 AM

Pingback from  The Morning Brew - Chris Alcock  » The Morning Brew #530

Ollie Riches wrote re: AutoMapper 1.0 RTW
on 02-02-2010 5:42 AM

Congrats!

Jon Kruger wrote re: AutoMapper 1.0 RTW
on 02-02-2010 7:32 AM

Congrats, I'm sure you have spent a lot of your free time on this.  It really filled a big gap in the .NET space, this would've saved me loads of time and money on previous apps.  Thanks for all the work.

Luca Milan wrote re: AutoMapper 1.0 RTW
on 02-02-2010 8:44 AM

Thanks! it'a great tools!

bogardj wrote re: AutoMapper 1.0 RTW
on 02-02-2010 10:56 AM

@Rudy

Use the "AutoMapper-unmerged.zip" download.  It contains the non-ILMerged AutoMapper and LinFu assemblies.

Bruno Figueiredo wrote re: AutoMapper 1.0 RTW
on 02-12-2010 2:02 PM

Hi Jimmy,

I'm getting a wierd behavior with automapper. I describe it on the codeplex automapper.codeplex.com/.../View.aspx.

Can you help me out. Thanks.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Enter the numbers above:
Copyright Los Techies 2008, 2009. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems