I have a class MediaList with a list of mediaitems. (Movie, Serie, Season, Episode).
All these classes have a property FileSize. So we get this structure:
Movie has a property FileSize. Serie has a property FileSize and a property Seasons. Seasons has a property FileSize and a property Episodes. Episode has a property FileSize
If have a calculated property FileSize on MediaList that i want to show. If one episode or movie is deleted, the parents fileSize needs to be updated until MediaList.FileSize is updated.
What is the best practices to handle this kind of properties?
View Complete Post