Fluent NHibernate: Mapping a column with a different name
- by Fred
Let's say I have a table:
Project
Id
Title
ProjectManagerId
ContactId
ProjectManagerId and ContactId are both id's from a table named Person:
Person
PersonId
Firstname
Lastname
How can I map these two columns to create a person object? (either using automapping or fluent's normal mapping).
Thanks