for this you need to implement IHasManyToManyConventionand IJoinedSubclassConventionsee
public class SubclassConvention : IJoinedSubclassConvention, IHasManyToManyConvention
{
public void Apply(IJoinedSubclassInstance instance)
{
instance.Table("Prefix" + instance.Type.Name);
}
public void Apply(IManyToManyCollectionInstance instance)
{
instance.Table("Prefix" + instance.TableName);
}
}
source
share