ReadOnly sets those attributes. Checkout http://wiki.fluentnhibernate.com/show/StandardMappingRelationships
On 2/6/09, Anson Davis <[email protected]> wrote: > For an NHibernate class element, if there's not a Fluent NHibernate method > for supporting a given attribute yet, how would you go about adding it to > your mapping classes? For example, the many-to-one element has attributes > like "update" and "insert" that don't appear to be supported by > IManyToOnePart. > > I figured I could just use SetAttribute to accomplish this, but all the > methods to set attributes have the signature > > public void SetAttribute(string name, string value) > > Since the return type is "void", you can't really use the method in your > ClassMap in a fluent way (i.e. chaining). You could only call the method > once, and it would have to be the last thing you call, like: > > this.References<SomeClass>(x => x.SomeClass, "SomeClass_Id") > .Not.Nullable() > .SetAttribute("update", "false"); > > Is there another way I should be doing this? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
