ChangeNotificationWrapper on EntitySet<T>

Topics: Issues / bugs, Questions
May 16, 2013 at 9: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}
May 17, 2013 at 2:07 PM
This seems to affect all Entity collection classes. Same thing on EntityCollection<T>.
May 18, 2013 at 5: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 so I can take a look when I get back.