Fluent NHibernate References with constants
I have a table mapped in Fluent NHibernate. This table must join to another table on an ID, but must also filter the joined values on that table against a set of constant values. Consider the following SQL: SELECT * FROM Table1 INNER JOIN Table2 ON Table1.Table2Id = Table2.Id AND Table2.Category = 'A constant expression' AND Table2.Language = 'A constant expression' My fluent mapping for Table1 currently looks like this: References(a => a.Table2).Nullable().Columns("Table2Id").ReadOnly(); How can I implement the constant expressions? I have noticed that your mapping specifies Nullable and no