Access the mapped property through a Property get to get the value
and do nothing 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 ReadOnlyAccessor : IPropertyAccessor |
Visual Basic |
---|
<SerializableAttribute> _ Public Class ReadOnlyAccessor _ Implements IPropertyAccessor |
Visual C++ |
---|
[SerializableAttribute] public ref class ReadOnlyAccessor : IPropertyAccessor |
Remarks
This is useful to allow calculated properties in the domain that will never
be recovered from the DB but can be used for querying.