In Fluent NHibernate, References() returns an object which doesn't support the 'ReadOnly()' method.
I'm trying to create this sort of mapping (i.e. one where an update is not propagated to the referred item):
<many-to-one update="false" insert="false"
name="DestinationSheet" column="DestinationSheetNumber" />
On normal (map()) mappings, those two attributes can be set with ReadOnly().
I'd like to be doing something like this:
References(x => x.DestinationSheet).
ColumnName("DestinationSheetNumber").ReadOnly();
I can manually add the update and insert attributes using SetAttributes(), and that works fine, but I am concerned that the fact that ReadOnly() is not present on References() is a clue that I shouldn't be trying to do this.
Does anyone know why ReadOnly() is not available in this context?