many-to-one with multiple columns

Posted by Sly on Stack Overflow See other posts from Stack Overflow or by Sly
Published on 2010-06-02T10:46:43Z Indexed on 2010/06/02 10:54 UTC
Read the original article Hit count: 198

I have a legacy data base and a relation one-to-one between two tables. The thing is that relation uses two columns, not one. Is there some way to say in nhibernate that when getting a referenced entity it used two columns in join statement, not one?

I'm trying to use this:

  References(x => x.Template)
            .Columns()
            .PropertyRef()

But can't get how to map join on multiple columns, any ideas?

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate