In Fluent NHibernate, Reference () returns an object that does not support the ReadOnly () method.
I am trying to create such a mapping (for example, one where the update does not apply to the specified element):
<many-to-one update="false" insert="false" name="DestinationSheet" column="DestinationSheetNumber" />
In normal (map ()) mappings, these two attributes can be set using ReadOnly ().
I would like to do something like this:
References(x => x.DestinationSheet). ColumnName("DestinationSheetNumber").ReadOnly();
I can manually add an update and insert attributes using SetAttributes (), and this works fine, but I am worried that the fact that ReadOnly () is not in the links () is the key that I should not try to do this.
Does anyone know why ReadOnly () is not available in this context?
source share