I have a problem in version 1.0 RTM of fluent nhibernte where I have a base class with an int Version property which is not being automapped in classes that inherit from that base class. I've narrowed it down to this method in the (FluentNHiberante.AutoMapping).AutoMapVersion class.
public void Map(ClassMappingBase classMap, PropertyInfo property)
{
if (property.DeclaringType != classMap.Type || !(classMap is ClassMapping))
return;
....
This first test returns false in my case, and I'm wondering what the purpose of this is (the bolded part of the if statement). The end result is that Version columns from base classes never get mapped. Maybe there's a valid reason for this line being here but I don't understand the rationale.
If there is a reason not to map version properties from base classes, surely this should go in the MapsProperty method so that the version property doesn't just get skipped like it does now.
Thanks,
--
Christian De Kievit