You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialization will fail if a model contains multiple linked entities of the same type. Take the following simple example:
publicclassPersonModel{publicintId{get;set;}publicStringFirstName{get;set;}publicStringLastName{get;set;}}publicclassMusicLessonModel{publicDateTimeDate{get;set;}publicintTeacherPersonId{get;set;}publicPersonModelTeacherPerson{get;set;}// This is where your bad day begins :)publicintStudentPersonId{get;set;}publicPersonModelStudentPerson{get;set;}}
Assuming the appropriate controllers have been configured etc, calling http://hostname/music-lessons?include=person results in an exception being raised prior to my code change in PR #34.
The text was updated successfully, but these errors were encountered:
Serialization will fail if a model contains multiple linked entities of the same type. Take the following simple example:
Assuming the appropriate controllers have been configured etc, calling
http://hostname/music-lessons?include=person
results in an exception being raised prior to my code change in PR #34.The text was updated successfully, but these errors were encountered: