1

Resolved

StackOverflowException when object is Self-recursive

description

Emit Mapper throws StackOverflowException when mapping self-recursive objects like:
 
 
public partial class CategoryEntity : global::System.Data.Objects.DataClasses.EntityObject
{
....
 
    public global::System.Data.Objects.DataClasses.EntityCollection<CategoryEntity> SubCategories
    {
        get
        {
..
        }
        set
        {
..
        }
    }
 
}
 
to
 

public class Category
{
...
 
public Category[] SubCategories { get; set; }
 
...
}

comments

romankovs wrote Dec 19, 2009 at 10:01 PM

Fixed.

wrote Feb 21, 2013 at 11:43 PM

wrote May 16, 2013 at 11:21 AM

wrote May 16, 2013 at 11:21 AM

wrote Jun 14, 2013 at 8:23 AM