Ok I really need help on this because I don't understand it. I've "googled" it and it turns out that setting lazy loading to false solved the problem. However I want lazy-loading to be turned on. So the other solution was to set all methods in my mapped entities to be virtual. Now it's working. However I've noticed that some of my object, which were of type DataTransfer.MyEntity are now of type myEntityProxy654s6546asfas (this crazy string after Proxy being completely random apparently).
This is all very ugly and I'd really appreciate some explanation on this ! :) Thanks On 18 mar, 09:43, graphicsxp <[email protected]> wrote: > Hello, > > After changing my NHibernate dll from 1.2 to 2.0, I receive the > following errors when BuildSessionFactory() is called : > > The following types may not be used as proxies: > DataTransfer.Cutting: method set_IsDeleted should be virtual > DataTransfer.MediaElement: method set_IsDeleted should be virtual > DataTransfer.Cutting: method set_IsChanged should be virtual > DataTransfer.MediaElement: method get_IsDeleted should be virtual > DataTransfer.MediaElementType: method set_IsChanged should be virtual > DataTransfer.Media: method AddMediaElement should be virtual > . > . > . > It goes on like that with all my Mapped entities. > > What is going on ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
