Hi,
I'm currently starting to use NHibernate and trying with simple examples works fine. Basic CRUDs operations works...
Now I'm trying to add this in a project and i'm facing a problem with my buisness objects :
They have to be validated for WPF purposes so I have some methods from IDataErrorInfo interface and other ones for some treatments.
NHibernate tells that :
Quote:
Iguana.Software.ICashDataLayer.DAOTesting.Save:
NHibernate.InvalidProxyTypeException : The following types may not be used as proxies:
Iguana.Software.ICashBO.TransactionAuto: method add_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method remove_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method get_Error should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method IsValid should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method add_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method remove_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method get_Error should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method IsValid should be 'public/protected virtual' or 'protected internal virtual'
Ok it should be virtual and my properties are virtual, but what if I don't want my methods and functions to be virtual ? Why Nhibernate wants this ? these are not properties so what it should do with ?!!
I really don't understand what I have to do...
Could you please help me ?
Thanks