Access the mapped property through a Property get to get the value
and go directly to the Field to set the value.
Namespace: NHibernate.PropertiesAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class NoSetterAccessor : IPropertyAccessor |
Visual Basic |
---|
<SerializableAttribute> _ Public Class NoSetterAccessor _ Implements IPropertyAccessor |
Visual C++ |
---|
[SerializableAttribute] public ref class NoSetterAccessor : IPropertyAccessor |
Remarks
This is most useful because Classes can provider a get for the Property
that is the <id> but tell NHibernate there is no setter for the Property
so the value should be written directly to the field.