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.dll)

Syntax

Visual Basic (Declaration)
Public Class NoSetterAccessor _
	Implements IPropertyAccessor
C#
public class NoSetterAccessor : IPropertyAccessor
Visual C++
public ref class NoSetterAccessor : IPropertyAccessor
JavaScript
NHibernate.Property.NoSetterAccessor = function();

Type.createClass(
	'NHibernate.Property.NoSetterAccessor',
	null,
	NHibernate.Property.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.

Inheritance Hierarchy

System..::.Object
  NHibernate.Property..::.NoSetterAccessor

See Also