I'm starting a new project using conformist mappings. I have a common set of fields pulled out into a component mapping as such:
public class AuditTrailMap : ComponentMapping<AuditTrail>
{
public AuditTrailMap()
{
Property(x => x.Created, xm => xm.NotNullable(true));
Property(x => x.Updated, xm => xm.NotNullable(true));
Property(x => x.UpdatedBy, xm => { xm.NotNullable(true); xm.Length(128); });
Property(x => x.UpdatedBySID, xm => { xm.NotNullable(true); xm.Length(128); });
Property(x => x.OnBehalfOf, xm => { xm.NotNullable(true); xm.Length(128); });
Property(x => x.OnBehalfOfSID, xm => { xm.NotNullable(true); xm.Length(128); });
}
}
However in my class mapping there doesn't seem to be any overload of the Component method which would accept one of these nor is it magically picked up. How do I use this mapping?