Hi I've successfully added a CustomManyToManyConvention which works perfectly with my Automapping
The model looks like this: Service 1:M ServiceCountry M:1 Country Where one Service can be available in many Countries, and a Country can be available in many Services This all works neatly when adding a IList<Service> Service in the Country entity and opposite with Service in my unit test. However I will need an entity for the ServiceCountry table as well, as this table also have some extra data to be stored, which I need. If I try to add this entity I will get a mapping error. My Identity and ForeignKey's follow this pattern: Service --------------- Id ServiceCountry ----------------------- ServiceId CountryId Country -------------- Id That is "Id" for Primary Keys and "EntityName + Id" for foreign keys. Introducing a M:M table, I'm not whether this pattern still apply? Do I need a IHasManyConvention? I cannot see how to make it work though. Thanks for any answers. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=.
