AutoMapper map IdPost to Post

Posted by Miha Necak on Stack Overflow See other posts from Stack Overflow or by Miha Necak
Published on 2010-03-29T03:40:26Z Indexed on 2010/03/29 3:43 UTC
Read the original article Hit count: 415

Filed under:

I'm trying to map int IdPost on DTO to Post object on Blog object, based on a rule.

I would like to achieve this: BlogDTO.IdPost => Blog.Post

Post would be loaded by NHibernate: Session.Load(IdPost)

How can I achieve this with AutoMapper?

© Stack Overflow or respective owner

Related posts about automapper