Model Properties backup

Feb 20, 2014 at 12:51 PM
I want ask about includeInBackup parameter of PropertyData. As i understand it's being used only in impl. of IEditableObject to be able to cancel changes.
As far as ModelBase is IEditableObject all models by default backup data on init, is it correct?
It's add some perfomance overhead and it would be awesome to disable backup at all in curent Model or move IEditableObject implementation to ther class, for example EditableModelBase : ModelBase.
This would grant user to change base type of his model to easy turn on/off backup.
Feb 20, 2014 at 12:59 PM
The default value of IncludeInBackup is indeed true. Can you give an example of a situation where you had issues with performance and the IEditableObject interface?
Feb 20, 2014 at 1:25 PM
Nope, I can't. But i can give you example when i have to manualy specify IncludeInBackup = false to avoid exception when trying to backup non serializable member.
Feb 20, 2014 at 1:43 PM
Ok, but if you have to do that for some exclusive members, then what is the actual problem?