I have an interesting issue, which I can't seem to find a satisfying answer for. It concerns join tables.
Basically (I'm sure this has been out here in some form or another, but I cant find it) I have 3 tables. A Person table, Address table, PersonAddress..
Person
PersonID Name Age etc..
Address
AddressID
AddressLine1
AddressLine2
City
State
Zip
PersonAddress
AddressID
PersonID
AddressType
The reason why AddressType is on the join table is simply because these addresses can be shared amongst people throughout the company, as a Shipping type, Physical Location, or Billing.
Is there even possibly away to join these as a collection or something
I would like to manage something like this
Address Class
AddressLine1
AddressLine2
City
State
Zip
AddressType
Person Class
Name
Age
IListAddresses
This person would hold a collection of addresses for himself.
If anyone has a way that I could accomplish this in Fluent or just straight XML mapping, that would be terrific. I just feel this should be something easy, but I am missing it. And not having the correct termonology (bridge table, join table, collection table, join-parts table) I cant seem to google to save my life.
Thanks in advance to any help!