Hi,

This question should be posted in either the NHibernate user's group:
http://groups.google.com/group/nhusers

... or perhaps more likely in the FluentNHibernate's user's group:
http://groups.google.com/group/fluent-nhibernate

Cheers,
   Richard

--------------------------------------------------
From: "pramod" <[email protected]>
Sent: Friday, May 14, 2010 8:11 AM
To: "nhibernate-development" <[email protected]>
Subject: [nhibernate-development] query-regarding-the-nhibernate-many-to-many-mapping


Hi,

I have a requirement where i have 3 dimension tables (employee,
project, technology) and a common fact table which has the key id's of
all these three tables.

My question goes like this...

How do i create a mapping table (fact table) having these three
columns - emp_id, proj_i and tech_i. I know we can achieve this for
two tables using the below syntax:

HasManyToMany(x =>
x.Empl) .Table("Emp_Proj") .ParentKeyColumn("Emp_i") .ChildKeyColumn("Proj_I") .Inverse() .Cascade.All();

How can i add another child key column (tech_i) to the above mapping
table?

Reply via email to