Fody/PropertyChanged

Compatibility with Realm database objects

Closed this issue · 1 comments

VaslD commented

Realm database models inherit from RealmObject which fully implements INotifyPropertyChanged. However this is not recognized by PropertyChanged.Fody. After compiling with PropertyChanged installed, these objects no longer saves to the database. No error or exception is reported, all seems working but you just get blank data when accessing the database.

When opted-out (or not opted-in) by using PropertyChanged’s attributes or filters, these models then work as expected. So it’s clear that Realm and PropertyChanged are not compatible.

An issue is already open on their repo. I’m wondering if PropertyChanged can detect objects inherit from RealmObject and skip code injection.

To be raising issues you should be a patron of Fody. Any issues raised by non Patrons may not be actively triaged, and eventually closed as stale.