Access the mapped property by using a Field to get and set the value.
Namespace:
NHibernate.PropertyAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class FieldAccessor _ Implements IPropertyAccessor |
C# |
---|
[SerializableAttribute] public class FieldAccessor : IPropertyAccessor |
Visual C++ |
---|
[SerializableAttribute] public ref class FieldAccessor : IPropertyAccessor |
JavaScript |
---|
NHibernate.Property.FieldAccessor = function(); Type.createClass( 'NHibernate.Property.FieldAccessor', null, NHibernate.Property.IPropertyAccessor); |
Remarks
The FieldAccessor is useful when you expose getter and setters
for a Property, but they have extra code in them that shouldn't be executed when NHibernate
is setting or getting the values for loads or saves.