3 ms·
Say you are implementing a self-tracking objects model for data management. How do you fix the reversal of control required to manage that? Specifically you nee
by Guvante 13y ago
Say you are implementing a self-tracking objects model for data management. How do you fix the reversal of control required to manage that? Specifically you need to go from the representative object to the controller to store the fact that you changed.
- letzjuc 13y agoCould you elaborate?
- Guvante 13y agoEntity Framework, when you modify an object it stores in a central location what the change was to be written out to a location latter. It is performance wise infeasible to avoid that circular reference because it is very easy to pull back a lot of data from entity framework and change none of it.
- rian 13y agoWeak ptr/reference. Also I would say that it's very uncommon to do/need something like this so it shouldn't be cited as an reason for cycles to be generally handled.
- Guvante 13y agoI have done weak pointer logic, it is not pretty.