I'm trying to end up with this sort of mapping:

    <many-to-one update="false" insert="false" name="DestinationSheet"
column="DestinationSheetNumber" />

(i.e. I don't want updates of this object to update DestinationSheet
at all)

These two attributes can normally be set via the ReadOnly() function
available via IProperty on PropertyMap() objects, but it's not present
on the ManyToOnePart<T> object which References() produces.

I have achieved the effect I want by using SetAttribute() to
'manually' set these attributes, and that seems to work OK, but I am
wondering if this is a sign that I'm really doing something wrong.

Is there a good reason why ReadOnly() is not available on a References
() mapping?
(A minor secondary question is 'is there a good reason why
SetAttribute is not chainable?')


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to