.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session Properties

The session that is used to load and save persistent objects. See Session.

Name Description

Gets or sets the action which is performed when the session is connected to a data store.


Obsolete. Gets or sets the session's cache behavior.

CanRaiseEvents Gets a value indicating whether the component can raise an event.
(Inherited from Component)

Gets or sets whether string comparisons evaluated by the session on the client are case-sensitive.


Gets or sets an IDbConnection object associated with the session.


Gets or sets the string which is used to open a database.

Container Gets the IContainer that contains the Component.
(Inherited from Component)

Gets the data access layer used by the current session to access a data store.

DefaultSession static

Gets the pre-initialized default session for simple applications.

DesignMode Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)

Gets metadata on persistent objects in a data store.

Events Gets the list of event handlers that are attached to this Component.
(Inherited from Component)

Gets or sets the session's Identity Map behavior.


Indicates whether a transaction is in progress.

InTransactionMode static

Enables the mode in which querying a data store for objects includes all in-memory changes into query results.


Gets whether the session is connected to a database.


Specifies whether or not a persistent object is marked modified when its non-persistent property value is changed.


Indicates whether persistent objects are being loaded from a data store.


Indicates whether persistent objects are being saved to a data store.


Gets or sets a value which controls the persistent object's locking during a session.


Provides access to an object access layer, which the current session uses to retrieve and update object data in a data store.


Obsolete. Gets the collection of IXPSimpleObject objects that are saved in the transaction currently in progress.


Gets or sets a value which specifies how XPO behaves when reloading changed objects (objects with different versions).

Site Gets or sets the ISite of the Component.
(Inherited from Component)
SuppressThrowingAssociationCollectionWithDisabledLoading static

Obsolete. Specifies whether exceptions are thrown when committing changes in a collection whose XPBaseCollection.LoadingEnabled property is set to false.


Specifies whether or not the current Session tracks persistent object property modifications.


Indicates whether changes made to persistent objects are being tracked or a list of tracked changes is not empty.


This member supports the XPO Framework infrastructure and is not intended to be used directly from your code.

See Also