Re: Join Table Issue - NHibernate - Template Frameworks - CodeSmith Community
Welcome to the CodeSmith Community!

Re: Join Table Issue

Template Frameworks

A description has not yet been added to this group.

Join Table Issue

Answered (Verified) This question is answered

Please tell me what is the expected form of my database tables for a correct generation/work of NHibernate.

Actually I have entity datatables with:

- id

- foreign keys ids

- fields

and some join datatables:

- foreign keys ids

The problem seems if i don't create an id column for the join datatables, else their name appear nowhere in the generated code...

Also if my entity datatable has no field, it is not generated. This can be avoided with adding an extended property "cs_ManyToMany" with a value being "False" or by adding a field (nullable bit typed for smaller memory usage).

My question is: how are my datatables supposed to be so that the generated code works correctly (meaning the join datatables are filled (inserts) automatically when i save a entity object refering to it?

Proud owner of CodeSmith Pro 5.2 License!

  • Post Points: 35
Verified Answer
All Replies
Page 2 of 2 (26 items) 12