Back to Devexpress

Session Properties

xpo-devexpress-dot-xpo-dot-session-dot-underscore-properties.md

latest6.3 KB
Original Source

Session Properties

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

NameDescription
AutoCreateOptionGets or sets the action which is performed when the session is connected to a data store.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CaseSensitiveGets or sets whether string comparisons evaluated by the session on the client are case-sensitive.
ConnectionGets or sets an IDbConnection object associated with the session.
ConnectionStringGets or sets a connection string.
ContainerGets the IContainer that contains the Component. Inherited from Component.
DataLayerGets the data access layer used by the current session to access a data store.
DefaultSession staticGets the pre-initialized default session for simple applications.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
DictionaryGets metadata on persistent objects in a data store.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
IdentityMapBehaviorGets or sets the session’s Identity Map behavior.
InTransactionIndicates whether a transaction is in progress.
InTransactionMode staticEnables the mode in which querying a data store for objects includes all in-memory changes into query results.
IsConnectedGets whether the session is connected to a database.
IsObjectModifiedOnNonPersistentPropertyChangeSpecifies whether or not a persistent object is marked modified when its non-persistent property value is changed.
IsObjectsLoadingIndicates whether persistent objects are being loaded from a data store.
IsObjectsSavingIndicates whether persistent objects are being saved to a data store.
LockingOptionGets or sets a value which controls the persistent object’s locking during a session.
ObjectLayerProvides access to an object access layer, which the current session uses to retrieve and update object data in a data store.
ObjectsSavedInCurrentTransactionObsolete. Gets the collection of IXPSimpleObject objects that are saved in the transaction currently in progress.
OptimisticLockingReadBehaviorGets or sets a value which specifies how XPO behaves when reloading changed objects (objects with different versions).
ServiceProviderGets the service provider used by the current session to access service objects.
SiteGets or sets the ISite of the Component. Inherited from Component.
SuppressThrowingAssociationCollectionWithDisabledLoading staticObsolete. Specifies whether exceptions are thrown when committing changes in a collection whose XPBaseCollection.LoadingEnabled property is set to false.
TrackingChangesIndicates whether changes made to persistent objects are being tracked or a list of tracked changes is not empty.
TrackPropertiesModificationsSpecifies whether or not the current Session tracks persistent object property modifications.
TypesManagerThis member supports the XPO Framework infrastructure and is not intended to be used directly from your code.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace