Stackoverflow exception

May 19, 2012 at 3:20 AM

Hi Jerimy

I'm getting stackoverflow exception when trying to save following model

 

public class Employee

{

    public string Name {get;set;}

    public Employee Manager {get;set;}

}

Employee employee = new Employee();

employee.Name = "Smith";

employee.Manager = employee;

Sterling.Save(employee);

Here you can see my employee instance is self-referenced object and I just wonder doesn't Sterling should have allowed me to save self-referencing objects?

does Cycle Detection cover such cases ?

please suggest if this  allowed.

Thanks

Xusan