In the following FluentNHibernate mapping:
public LawbaseAssetMap()
{
Table("PRASSET");
Id(x => x.Id).Column("PRA_RECNUM");
Join("PRSTOCK", m =>
{
m.Fetch.Join();
m.Optional();
m.KeyColumn("PRS_ASSRN");
m.Map(t => t.Certificated).Column("PRS_CERT").CustomType("YesNo");
});
}
I am performing an outer join from the table PRASSET
to the table PRSTOCK
. The join is between PRSTOCK.PRS_ASSRN
and PRASSET.PRA_RECNUM
(the primary key of PRASSET
).
How would I create the equivalent join, but instead of joining onto PRASSET
's primary key, join on to another field instead?