Will entities (and proxies) returned by the query be loaded in read-only mode?

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

Syntax

C#
bool IsReadOnly { get; }
Visual Basic
ReadOnly Property IsReadOnly As Boolean
	Get
Visual C++
property bool IsReadOnly {
	bool get ();
}

Return Value

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

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