I want to add a property to a Part created by another module but I don't want to change the module source code.
OrigPartRecord and OrigPart classes created in the Model folder of module x.
My module is an extender of module x.
I can managed to add the column by code in my module migration file suing something like this
Func<string, string> formatPrefix= (s => s.Replace(".", "_") + "_");
var newSchemaB= new SchemaBuilder(_interpreter, "Nwazet.Commerce", formatPrefix);
newSchemaB.AlterTable("ProductPartRecord", table => table
But I can't find a way to have NHibernate taking care of this new property.
If I try to create my own classes which inherit from the former classes, I get errors.
May be somebody has already dealed with this or could recommand a positive approch ?