Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am jingalls on github.
* I am k1llb0t (https://keybase.io/k1llb0t) on keybase.
* I have a public key whose fingerprint is E015 2C65 B9A8 0437 1E5B 151A 2F93 F742 8705 95DD
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jingalls on github.
  • I am k1llb0t (https://keybase.io/k1llb0t) on keybase.
  • I have a public key whose fingerprint is 373D 3558 F071 B57E F3C6 B917 DCBA A44F 3E49 BEF0

To claim this, I am signing this object:

@jingalls
jingalls / AutomapperMappingSetup.cs
Created January 3, 2012 15:18
Automapper Map with Anonymous function not working in version 2.0
using System.Linq;
using AutoMapper;
public static class AutoMapperConfig
{
public static void CreateMappings()
{
Mapper.CreateMap<User, ConfigurationUserViewModel>()
.ForMember(dest => dest.Email, opt => opt.MapFrom(src =>
{