3.1 IEditableObject issue

May 8, 2012 at 9:59 PM

I just updated my Catel references from 3.0.1 to 3.1.  Now I get an error when building.

My model classes inherit from DataObjectBase through an abstract class I created which excludes the IsDirty and IsReadOnly properties from EntityFramework.

When I build now, I get errors indicating the BeginEdit, EndEdit and CancelEdit methods could not be found and I'm not sure why.  Any ideas?

May 9, 2012 at 5:18 AM

The IEditableObject interface is now implemented explicitly (to have less intellisense garbage). You have to cast before using these methods.

May 9, 2012 at 2:28 PM

OK.  Was this noted somewhere since this breaks existing code?  I don't want to trouble you guys with requests like this unnecessarily.

May 9, 2012 at 6:20 PM

Yes, in the release notes:


Search for IEditableObject