1

Closed

Automapper threw stackoverflow exception

description

I have a class like this:
 
public class Category
{
public int CategoryID { get; set; }
 
public string Name { get; set; }
 
public Category Parent { get; set; }
 
public IList<Category> Children { get; set; }
}
 
And because of this Parent/Children relationship the conversion DTO/POCO threw a stackoverflow exception.
 
Have you any troubleshooting in this case?
 
Thanks!
Closed Sep 13, 2009 at 7:30 PM by jbogard
Could not reproduce, need the full example.

comments

jbogard wrote Aug 16, 2009 at 1:32 AM

Hi,

Can you provide an example using Mapper.Map, with the source/destination types?