ChangeNotificationWrapper on EntitySet<T>

Topics: Issues / bugs, Questions
May 16, 2013 at 8:04 PM
In a Silverlight 5, RIA Services project I'm trying to use the new ChangeNotificationWrapper to observe the arrival of new entities. It throws the following exception when I try to create on wrapping an EntitySet<T>.
  • InnerException {System.NotSupportedException: No add-method available for event 'CollectionChanged', cannot subscribe using weak events. Make sure the event is public
    at Catel.WeakEventListener3.SubscribeToEvent(Object source, String eventName)
    at Catel.WeakEventListener
    3.SubscribeToWeakEvent(TTarget target, TSource source, String eventName, Delegate handler)} System.Exception {System.NotSupportedException}
Bug?
May 17, 2013 at 1:07 PM
This seems to affect all Entity collection classes. Same thing on EntityCollection<T>.
Coordinator
May 18, 2013 at 4:05 AM
Yes, the downside is that SL cannot reflect explicit interface events. They are private somehow (interesting, right...). I am currently on vacation so cannot look at it, but please create an issue at http://catelproject.atlassian.net so I can take a look when I get back.