Fluent NHibernate mapping on multiple non-PK fields
I have a situation similar to that described in Fluent NHibernate Mapping not on PK Field However, the relationship between my tables is described by multiple non-primary key columns. Imagine Chris Meek's situation but where a Person has a JobType and a Code that, together, should (sorry, it's a legacy database) uniquely describe a Person Person ------ Id PK JobType Code Name Order ----- Id PK Person_JobType Person_Code OrderDetails Serhat Özgel's answer describes using PropertyRef , but I can't find a way to do that individually for multiple columns. I've tried similar to class PersonMap :