Session Properties
The session that is used to load and save persistent objects.| Name | Description |
|---|---|
| AutoCreateOption | Gets or sets the action which is performed when the session is connected to a data store. |
| CanRaiseEvents protected | Gets a value indicating whether the component can raise an event. Inherited from Component. |
| CaseSensitive | Gets or sets whether string comparisons evaluated by the session on the client are case-sensitive. |
| Connection | Gets or sets an IDbConnection object associated with the session. |
| ConnectionString | Gets or sets a connection string. |
| Container | Gets the IContainer that contains the Component. Inherited from Component. |
| DataLayer | 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 protected | Gets a value that indicates whether the Component is currently in design mode. Inherited from Component. |
| Dictionary | Gets metadata on persistent objects in a data store. |
| Events protected | Gets the list of event handlers that are attached to this Component. Inherited from Component. |
| IdentityMapBehavior | Gets or sets the session’s Identity Map behavior. |
| InTransaction | 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. |
| IsConnected | Gets whether the session is connected to a database. |
| IsObjectModifiedOnNonPersistentPropertyChange | Specifies whether or not a persistent object is marked modified when its non-persistent property value is changed. |
| IsObjectsLoading | Indicates whether persistent objects are being loaded from a data store. |
| IsObjectsSaving | Indicates whether persistent objects are being saved to a data store. |
| LockingOption | Gets or sets a value which controls the persistent object’s locking during a session. |
| ObjectLayer | Provides access to an object access layer, which the current session uses to retrieve and update object data in a data store. |
| ObjectsSavedInCurrentTransaction | Obsolete. Gets the collection of IXPSimpleObject objects that are saved in the transaction currently in progress. |
| OptimisticLockingReadBehavior | Gets or sets a value which specifies how XPO behaves when reloading changed objects (objects with different versions). |
| ServiceProvider | Gets the service provider used by the current session to access service objects. |
| 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. |
| TrackingChanges | Indicates whether changes made to persistent objects are being tracked or a list of tracked changes is not empty. |
| TrackPropertiesModifications | Specifies whether or not the current Session tracks persistent object property modifications. |
| TypesManager | This member supports the XPO Framework infrastructure and is not intended to be used directly from your code. |
See Also