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.