Hi,

I have a class that has a property UniqueId I would like to have
persisted to the database. UniqueId is calculated by using the class'
GetHashCode function and used at a later stage to perform existence/
duplicate checking before saving other instances of my class (hence
the need for it to be persistent and not transient).

In 'normal' NHibernate I could use the event/listener support. How
could I do the same in FluentNH?

It'd be pretty neat to be able to do something like Map( e =>
e.UniqueId).OnSave( <callback> ) but that's just me thinking out loud
(which I've been told -repeatedly- I should not do ;)

Thanks,

Erik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to