How to AutoMapper field? -


i want map entity model

entity:

public class fileentity {     public ilist<tagentity> tags { get; set; } } 

model:

public class filemodel {     public ilist<tagmodel> tags { get; set; } } 

the fields in tagentity , tagmodel same

how should mapper that?

this should simple as:

mapper.createmap<tagentity, tagmodel>(); mapper.createmap<fileentity, filemodel>(); 

automapper automatically map lists without having extra.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -