Hello,
I have a situation where I need to store a graph data structure in the database.
This means an entity can have unlimited number of related entities of the same type (related entity can have unlimited related entities as well).
I was thinking that many-to-many relationship would solve my problem.
I'm trying to do mapping with FluentNHibernate, but following code does not generate SQL for CREATE TABLE for EntityEntity table:
HasManyToMany(x => x.RelatedEntities).ChildKeyColumn("RelateEntityID").ParentKeyColumn("EntityID");
Am I doing something wrong? Or should I create a separate entity and do mapping using HasMany()?
Thank You very much!