Sorry...new keyboard...Take Two...

public class AuditInfo
{
        public DateTime DateTime { get; set; }

        public string UserName { get; set; }
}

In my persistence objects, I use this twice, once for "created" and
the other for "modified"

e.g.

public virtual AuditInfo CreationInfo { get; set; }

public virtual AuditInfo ModificationInfo { get; set; }

In my mappings, I use the ComponentMap<T> with the original AuditInfo
and the Component method for each of the implementations:

Component(map => map.CreationInfo).ColumnPrefix("created");
Component(map => map.ModificationInfo).ColumnPrefix("modified");

I've used the ColumnPrefix to differentiate the columns in the
database. I have this applied to the current objects in my persistence
layer (which happens to be seven).

The HBM that is generated contains this for the column name.
modifiedcreatedmodifiedcreatedmodifiedcreatedmodifiedcreatedmodifiedcreatedmodifiedcreatedmodifiedcreatedOnDate

Not exactly what I was expecting, but, definitely "Chaining" the names
(per the documentation). Is this the intended results?

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to