Skip to content

Instantly share code, notes, and snippets.

@mdcarmo
Created March 21, 2018 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdcarmo/c8e5d9cfedffffeac71d6cbe7ec121f5 to your computer and use it in GitHub Desktop.
Save mdcarmo/c8e5d9cfedffffeac71d6cbe7ec121f5 to your computer and use it in GitHub Desktop.
exemplo de mapeamento de classes com o Automapper
public class AutoMapperProfile: Profile
{
public AutoMapperProfile()
{
CreateMap<User, UserDto>();
CreateMap<UserDto, User>();
CreateMap<Post, PostDto>();
CreateMap<PostDto, Post>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment