Timeline for Circular dependency and object creation when attempting DDD
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 18, 2014 at 21:13 | comment | added | dbc | @Euphoric - To serialize the entire data set, OP would probably want to see the list of persons as XML children of their organization. Marking the "Organization" property as "[NonSerialized]" and adding a setter for "People" that loops through the incoming enumerable and links everything up could do the job. Special code would be required to independently serialize/deserialize a specific Person though. | |
| Jun 18, 2014 at 16:54 | history | edited | dbc | CC BY-SA 3.0 |
Added if (organization == value) return;
|
| Jun 18, 2014 at 13:04 | comment | added | Euphoric | While this looks great, It might be problematic to implement when handling a persistent data. Eg. when organization is not actually loaded when handling person or other way around. But I guess OP is not concerned about this. | |
| Jun 18, 2014 at 8:45 | history | answered | dbc | CC BY-SA 3.0 |