Gets a Boolean indicating if the underlying collection is directly accessible through code.

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

Syntax

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

Field Value

trueTruetruetrue (True in Visual Basic) if we are not guaranteed that the NHibernate collection wrapper is being used.

Implements

IPersistentCollection..::..IsDirectlyAccessible

Remarks

This is typically falseFalsefalsefalse (False in Visual Basic) whenever a transient object that contains a collection is being associated with an ISession through Save(Object) or SaveOrUpdate(Object). NHibernate can't guarantee that it will know about all operations that would cause NHibernate's collections to call Read()()()() or Write()()()().

See Also