Access the mapped property through a Property get to get the value
and go directly to the Field to set the value.
Namespace: NHibernate.Property
Assembly: NHibernate (in NHibernate)
Version: 1.2.0.4000
Syntax
| Visual Basic (Declaration) |
|---|
Public Class NoSetterAccessor _ Implements IPropertyAccessor |
| C# |
|---|
public class NoSetterAccessor : IPropertyAccessor |
| Visual C++ |
|---|
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.