Fluent NHibernate join table mapping
Posted
by Rusty
on Stack Overflow
See other posts from Stack Overflow
or by Rusty
Published on 2010-06-02T18:22:07Z
Indexed on
2010/06/02
18:24 UTC
Read the original article
Hit count: 700
Reverse engineering an existing database to map with N-Hibernate using Fluent N-Hibernate.
How can I map this?
Address table
Id Address1 Address2
Person table
Id First Last
Types
Id TypeName
PersonAddress table (A person can have home, business etc addresses)
Id PersonId (Id from person table) AddressId (Id from address table) TypeId (Id from types lookup table HOME, BUSINESS etc..)
Any help would be great. Thanks
© Stack Overflow or respective owner