Multiple users


I’m trying to add a new property to my Event model, because i need to create a calendar foreach user . After added first event, i get this error “An unhandled exception of type ‘System.StackOverflowException’ occurred in mscorlib.dll” in line of “return new SchedulerAjaxData(apps);”, where apps is my list of events from database.

I`ve read more than 1 day everything that i found on internet about this subject, but nothing to resolve my problem.

probably the event class has two-side link to a related user class,
CalendarEvent.User <-> User.Events
So there is a circular relation when converting it to json.
Try excluding such properties from data that goes to the client, so the event will have only Id of the related user, not the whole instance … the_client