Fluent NHibernate: Mapping HasManyToMany by convention
问题 I'm using Fluent NHibernate's AutoMap feature to map my entities. Most of my entities inherit from a base class Entity which has a property public IList<Tag> Tags . The tags are in a separate table in the database, so I use a many-to-many relation. But Fluent NHibernate creates mappings for a one-to-many relation. I'd like to write a convention to override these mappings to use HasManyToMany(...) if the class inherits from Entity . Is this possible and how? The convention could either rely on