Public Class Building
Implements IBuilding, INotifyPropertyChanged
Public Event PropertyChanged(ByVal sender As Object, ByVal e
As PropertyChangedEventArgs) Implements
INotifyPropertyChanged.PropertyChanged
End Class
The proxy validation returns these error:
BusinessObjects.Building: method add_PropertyChanged should be
'public/protected virtual' or 'protected internal virtual'
BusinessObjects.Building: method remove_PropertyChanged should be
'public/protected virtual' or 'protected internal virtual'
In C# I'd just declare the event virtual, but vb.net doesn't allow
Overridable (virtual) events.
I don't think I can alter my company's decision to standardize on vb.net.
It looks like my other options are:
Stay at NHibernate 1.2
Turn off proxy validation ( <property
name="use_proxy_validator">false</property> )
Stop using proxies
Look into static proxies (
http://ayende.com/Blog/archive/2008/10/10/nhibernate-amp-static-proxies.aspx
)
Any advice? Am I missing an option?
Thanks
Eric Bock
Thanks Ken and Fabio, I’ll look into both options.
Fabio, are you suggesting that my ProxyFactoryFactory implementation return an IProxyValidator that doesn’t validate that the compiler generated add_X and remove_X accessors for an event are virtual?
Thanks,
Eric Bock
Thanks Ken and Fabio, I'll look into both options.
Fabio, are you suggesting that my ProxyFactoryFactory implementation return an IProxyValidator that doesn't validate that the compiler generated add_X and remove_X accessors for an event are virtual?