0

I have a scenario in which i got 2 tables, and a third bridge table for many to many relationship.
Table A:

  • AID
  • AName

Table B:

  • BID
  • BName

TableAB

  • AID
  • BID
  • Allow
I have extra field in bridge table how to map many to many in this scenario.

Thanks

Rippo
  • 22,117
  • 14
  • 78
  • 117
Saad
  • 1,312
  • 5
  • 17
  • 40

1 Answers1

1

I think you have to create an entity for the bridge table!

Look here:

additional fields in NHibernate many-to-many relation tables

update

I also found this workaround but I've not tested it:

Nhibernate many-to-many with extra fields in the join table

Community
  • 1
  • 1
danyolgiax
  • 12,798
  • 10
  • 65
  • 116
  • Actually the scenario is i have Roles table and modules table and the relation between these table is many to many , i have an entity name 'Allow' in bridge table to to enable disable the module access anytime – Saad Jul 11 '11 at 06:42
  • ahan Thanks... let me give it a try – Saad Jul 11 '11 at 06:48