Closed ghost1372 closed 3 years ago
Today I discovered that if a property is not virtual then the proxy not only ignores it's value but will have a completely independent property from the wrapped object. Therefore there is logic to enforcing all properties to be virtual even if IgnoreJsonAttribute or IgnoreAutosaveAttribute is specified in order to properly auto-save and make sure the object behaves as expected and not swallow any changes to non-virtual properties as they are not linked to the wrapped object.
This is now enforced as of release alpha4.
I always use the auto save module and I sometimes forget to define the properties virtual for AutoSave, I get into trouble when working with the program and look for the cause of the problem for a while Until I realize that the property is not defined virtual It would be nice to have an exception error in this case That we can understand that the property is not virtual