Mapping Virtual Property Automapper
<p>I have some
problem
with mapping models . So I have a entity model </p>

<pre><code>public class User
{
    public string UserId { get; set;}

    public ICollection&lt;Group&gt; Groups {get; set;}
}
</code></pre>

<p>and DTO model </p>

<pre><code>public class UserInfo
{   
    public string UserId { get; set;}  

    public List&lt;GroupInfo&gt; Groups {get; set;}
}
</code></pre>

<p>So I have problem when mapping User  to UserInfo 
Missing configuration type for GroupInfo . 
How intialize second mapping ?</p>

<p>User is mapped to UserInfo as the following:</p>

<pre><code>var config = new MapperConfiguratiins(cfg=&gt;cfg.CreateMap&lt;User,UserInfo&gt;()); 
var mapper = config.CreateMapper();
var userInfo = mapper.Map&lt;UserInfo&gt;(user);
</code></pre>