You're using event listeners, something I don't do, hence my
unhelpfulness. You're on your own if that's the route you're taking.


NHibernate has the concept of a "generated" property which can be set
to insert or always. Insert is for if a property is generated on insert
by the database (say by a calculated column), and always is for trigger
generated values. Generated columns will be pushed into your entity.


If you were to use a trigger, you'd map it like this:


Map(x => x.Property)
.Generated.Always();

-- 
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.

Reply via email to