Problem with nhibernate join
Posted
by MexicanHacker
on Stack Overflow
See other posts from Stack Overflow
or by MexicanHacker
Published on 2010-05-26T15:07:44Z
Indexed on
2010/05/26
15:21 UTC
Read the original article
Hit count: 168
asp.net-mvc
|fluent-nhibernate
I'm trying to do a join like this using fluent nhibernate:
Id(x => x.Id);
Map(x => x.SourceSystemRecordId,"sourceSystemRecord_id");
Then
Join("cat.tbl_SourceSystemRecords", SourceSystemRecords);
But, it seems I don't have a way to specify the column I want to join with from the first table, in this case I need to join on SourceSystemRecordId and not on Id
Is there any way I can specify this? I tried References() but that requires me to create an object for this relationship, what I need is to aggregate the columns in sourcesystem records to the ones in the main table.
© Stack Overflow or respective owner