Will entities (and proxies) returned by the query be loaded 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 query will be put in read-only mode, otherwise false.

Implements

IQuery..::..IsReadOnly

Remarks

If the query's read-only setting is not initialized (with SetReadOnly(Boolean)), the value of the session's DefaultReadOnly property is returned instead.

The value of this property has no effect on entities or proxies returned by the query that existed in the session before the query was executed.

See Also