Will entities (and proxies) loaded by this Criteria be put in read-only mode?

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

Syntax

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

Return Value

true if entities and proxies loaded by the criteria will be put in read-only mode, otherwise false.

Implements

ICriteria..::..IsReadOnly

Remarks

If the read-only setting was not initialized, then the value of the session's DefaultReadOnly property is returned instead.

The read-only setting has no impact on entities or proxies returned by the Criteria that existed in the session before the Criteria was executed.

See Also