I believe there was a very similar discussion to this one a couple of
days ago.
I have created an Interceptor to add Auditing to the entities I am
interested in, here Auditing consists of adding new records to an
Audit table that contains the exact same record of the entity being
saved/updated.
To do this I mapped a Audit entity that has a property of the audited
entity in addition of extra data such as time of action.
So it's very much like : AuditEntity.Data = Entity;
The error I am getting is that NHibernate can't find the Persister for
one of the lazy loaded associations ({EntityName}Proxy) from the
Entity. I saw somebody mentioning to unwrap the proxy and by that I
thought it meant to initialize the association by using
NHibernate.Initialize(object proxy) but that doesn't seem to quite
work.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---