Read-only status

Namespace: NHibernate.Proxy
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public bool ReadOnly { get; set; }
Visual Basic
Public Property ReadOnly As Boolean
	Get
	Set
Visual C++
public:
virtual property bool ReadOnly {
	bool get () sealed;
	void set (bool value) sealed;
}

Implements

ILazyInitializer..::..ReadOnly

Remarks

Not available when the proxy is detached or its associated session is closed.

To check if the read-only setting is available, use IsReadOnlySettingAvailable

The read-only status of the entity will be made to match the read-only status of the proxy upon initialization.

See Also