Created
October 5, 2010 18:35
-
-
Save cprieto/612061 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountMapperProfile : Profile { | |
public override void Configure() { | |
CreateMap<DomainEntity, DtoEntity>(); | |
// NOTE: El resto de mapeos en esta unidad lógica.... | |
} | |
} | |
//.... Luego en mi sistema | |
public class SampleController { | |
public SampleController(IMappingEngine mapper) { | |
} | |
} | |
// ... En mi caso uso una facility de Windsor, pero lo mismo se podría logar con cualquier otro IoC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment