|
Hello,
I a master table JournalEntries:
JournalEntryID Int, PK, Identity
EntryDate SmallDateTime
EntryText VarChar(MAX)
RowVersion Int
Then for each table I want to have jounral entries, I have another table, ie:
PersonJournalEntries
JournalEntryID Int, PK, FK to JournalEntryID in JournalEntries
PersonID Int, FK to People table
AccountJournalEntries
JournalEntryID Int, PK, FK to JournalEntryID in JournalEntries
AccountID Int, FK to Accounts table
What is the best way to model this in v1.2 of NH mapping file?
Thanks a million!
|