Hi,
I’m using “DHTMLX Scheduler NET” (with Entity Framework) and I added a fk (ID_WorkPlace) to events table, but every time I try to load the scheduler data(check the code below):
public ContentResult Data()
{
var data = new SchedulerAjaxData();
....
// I get the error here
data = new SchedulerAjaxData
(
new CalendarioOficinaEntities().Events.Where(ev => ev.ID_WorkPlace == workPlaceID)
);
....
return (ContentResult)data;
}
I get the following error:
"System.StackOverflowException was unhandled
Message: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"
But if I remove the connection in sql server and maintaining the “ID_WorkPlace” column everything run just fine.
What am I doing wrong?I can’t add fk to the Events table?
Thank you,
Rodrigo Campos