Fluent NHibernate: Mapping a column with a different name

Posted by Fred on Stack Overflow See other posts from Stack Overflow or by Fred
Published on 2010-06-03T04:55:25Z Indexed on 2010/06/03 5:04 UTC
Read the original article Hit count: 234

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about fluent-nhibernate