[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Collapse]eXpress Persistent Objects
 [Expand]Product Information
 [Expand]Getting Started
 [Expand]Fundamentals
 [Expand]Feature Center
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Examples
 [Expand]Member Tables
 [Collapse]API Reference
  [Collapse]DevExpress.Xpo
   [Expand]AggregatedAttribute Class
   [Expand]AssociationAttribute Class
    AsyncBehavior Enumeration
    AsyncCommitCallback Delegate
    AsyncSelectDataCallback Delegate
    CacheBehavior Enumeration
    CollectionBindingBehavior Enumeration
   [Expand]ColumnDbDefaultValueAttribute Class
   [Expand]ColumnDefaultValueAttribute Class
   [Expand]CommitObjectStubsResult Class
   [Expand]CustomAttribute Class
   [Expand]CustomCriteriaManager Class
   [Expand]DataViewPropertiesCollection Class
   [Expand]DataViewProperty Class
   [Expand]DataViewRecord Class
   [Expand]DbTypeAttribute Class
    DefaultMembersPersistence Enumeration
   [Expand]DefaultMembersPersistenceAttribute Class
   [Expand]DeferredDeletionAttribute Class
   [Expand]DelayedAttribute Class
   [Expand]DisplayNameAttribute Class
   [Expand]ExplicitLoadingAttribute Class
   [Expand]ExplicitUnitOfWork Class
   [Expand]FetchOnlyAttribute Class
   [Expand]GetObjectStubsByKeyQuery Class
    GuidGenerationMode Enumeration
   [Expand]HiddenAttribute Class
   [Expand]ICustomCriteriaOperatorQueryable Interface
   [Expand]ICustomFunctionOperatorQueryable Interface
   [Expand]IDataLayer Interface
   [Expand]IDataLayerAsync Interface
    IdentityMapBehavior Enumeration
   [Expand]IndexedAttribute Class
   [Expand]IndicesAttribute Class
   [Expand]IObjectLayer Interface
   [Expand]IObjectLayerAsync Interface
   [Expand]IObjectLayerEx Interface
   [Expand]IObjectLayerOnSession Interface
   [Expand]ISerializableObjectLayer Interface
   [Expand]ISerializableObjectLayerEx Interface
   [Expand]IXPModificationsStore Interface
   [Expand]IXPObject Interface
   [Expand]IXPSimpleObject Interface
   [Expand]KeyAttribute Class
   [Expand]LoadDataMemberOrderItem Structure
    LockingOption Enumeration
   [Expand]MapInheritanceAttribute Class
    MapInheritanceType Enumeration
   [Expand]MapToAttribute Class
   [Expand]MemberDesignTimeVisibilityAttribute Class
   [Expand]MergeCollisionBehaviorAttribute Class
   [Expand]NestedUnitOfWork Class
   [Expand]NoForeignKeyAttribute Class
   [Expand]NonPersistentAttribute Class
   [Expand]NullableAttribute Class
    NullableBehavior Enumeration
   [Expand]NullableBehaviorAttribute Class
   [Expand]NullValueAttribute Class
   [Expand]ObjectChangeEventArgs Class
    ObjectChangeEventHandler Delegate
    ObjectChangeReason Enumeration
   [Expand]ObjectManipulationEventArgs Class
    ObjectManipulationEventHandler Delegate
   [Expand]ObjectsByKeyQuery Class
   [Expand]ObjectsManipulationEventArgs Class
    ObjectsManipulationEventHandler Delegate
   [Expand]ObjectsQuery Class
   [Expand]ObjectStubsQuery Class
   [Expand]OptimisticLockingAttribute Class
    OptimisticLockingBehavior Enumeration
   [Expand]OptimisticLockingIgnoredAttribute Class
    OptimisticLockingReadBehavior Enumeration
   [Expand]OptimisticLockingReadBehaviorAttribute Class
    OptimisticLockingReadMergeBehavior Enumeration
   [Expand]PersistentAliasAttribute Class
   [Expand]PersistentAttribute Class
   [Expand]PersistentBase Class
    PersistentCriteriaEvaluationBehavior Enumeration
   [Expand]ResolveSessionEventArgs Class
    ResolveSessionEventHandler Delegate
   [Expand]SchemaInitEventArgs Class
    SchemaInitEventHandler Delegate
   [Expand]SerializableObjectLayer Class
   [Expand]SerializableObjectLayerClient Class
    ServerExceptionThrownAction Enumeration
   [Expand]ServerExceptionThrownEventArgs Class
    ServerExceptionThrownEventHandler Delegate
   [Expand]ServerViewPropertiesCollection Class
   [Expand]ServerViewProperty Class
   [Expand]Session Class
   [Expand]SessionManipulationEventArgs Class
    SessionManipulationEventHandler Delegate
   [Expand]SessionObjectLayer Class
   [Expand]SessionOperationFailEventArgs Class
    SessionOperationFailEventHandler Delegate
   [Expand]SimpleDataLayer Class
   [Expand]SimpleObjectLayer Class
   [Expand]SizeAttribute Class
   [Expand]SkipCheckForFeedsAttribute Class
    SortDirection Enumeration
   [Expand]SortingCollection Class
   [Expand]StreamAttribute Class
   [Expand]ThreadSafeDataLayer Class
   [Expand]UnitOfWork Class
   [Expand]ValueConverterAttribute Class
   [Expand]ViewPropertiesCollection Class
   [Expand]ViewProperty Class
   [Expand]ViewRecord Class
   [Expand]VisibleAttribute Class
   [Expand]XPBaseCollection Class
   [Expand]XPBaseObject Class
   [Expand]XPBindingSource Class
   [Expand]XPClassInfoStub Class
   [Expand]XPCollection Class
   [Expand]XPCollection<T> Class
   [Expand]XPCollectionChangedEventArgs Class
    XPCollectionChangedEventHandler Delegate
    XPCollectionChangedType Enumeration
   [Expand]XPCursor Class
   [Expand]XPCustomObject Class
   [Expand]XPDataObject Class
   [Expand]XPDataView Class
   [Expand]XPDelayedProperty Class
   [Expand]XPDictionaryStub Class
   [Expand]XPInstantFeedbackSource Class
   [Expand]XPInstantFeedbackView Class
   [Expand]XPLiteObject Class
   [Expand]XPObject Class
   [Expand]XPObjectSource Class
   [Expand]XPObjectSourcePropertiesCollection Class
   [Expand]XPObjectSourceProperty Class
   [Expand]XPObjectSourceRecord Class
   [Expand]XPObjectStub Class
   [Expand]XPObjectStubCollection Class
   [Expand]XPObjectType Class
   [Expand]XpoDataSource Class
   [Expand]XpoDataSourceInsertedEventArgs Class
    XpoDataSourceInsertedEventHandler Delegate
   [Collapse]XpoDefault Class
     XpoDefault Members
    [Expand]XpoDefault Properties
    [Expand]XpoDefault Methods
   [Expand]XPPageSelector Class
   [Expand]XPQuery<T> Class
   [Expand]XPQueryBase Class
   [Expand]XPQueryExtensions Class
   [Expand]XPServerCollectionSource Class
   [Expand]XPServerModeView Class
   [Expand]XPView Class
   [Expand]XPWeakReference Class
  [Expand]DevExpress.Xpo.DB
  [Expand]DevExpress.Xpo.DB.Helpers
  [Expand]DevExpress.Xpo.Exceptions
  [Expand]DevExpress.Xpo.Helpers
  [Expand]DevExpress.Xpo.Metadata
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

XpoDefault Members

Provides global settings.

Expanded Public Properties

Show: Inherited
  Name Description
Public propertyStatic member ActiveConnectionString Gets the connection string which is used by newly created connection providers.
Public propertyStatic member CacheBehavior Obsolete. Gets or sets the cache behavior.
Public propertyStatic member ConnectionString Gets or sets the string which is used to open a database, by default.
Public propertyStatic member DataLayer Gets or sets the default Data Access Layer which is used by Session objects by default, to access a data store.
Public propertyStatic member DataStoreAsyncBehavior Gets or sets an AsyncBehavior value. The value determines how IDataLayerAsync descendants call DevExpress.Xpo.DB.IDataStore's and DevExpress.Xpo.DB.IDataStoreAsync's methods in asynchronous operations.
Public propertyStatic member DefaultCaseSensitive Specifies the default setting of the Session.CaseSensitive and XPDataView.CaseSensitive properties.
Public propertyStatic member DefaultStringMappingFieldSize Specifies the default size of the database column which the member's data is stored in. The default value is 100.
Public propertyStatic member Dictionary Gets or sets metadata on the persistent objects in a data store.
Public propertyStatic member IdentityMapBehavior Gets or sets the Identity Map behavior used by Sessions by default.
Public propertyStatic member IsObjectModifiedOnNonPersistentPropertyChange Specifies whether or not a persistent object is marked modified when its non-persistent property value is changed.
Public propertyStatic member MaxInSize Gets the maximum optimal packet size (the number of operands in a packet) for the DevExpress.Data.Filtering.InOperator.Operands collection.
Public propertyStatic member NullableBehavior Specifies if nullable columns should be created when updating the database schema.
Public propertyStatic member ObjectLayer Specifies the default Object Access Layer which is used by Session objects by default, to retrieve and update object data in a data store.
Public propertyStatic member OptimisticLockingReadBehavior Gets or sets a value which specifies how XPO behaves by default when reloading changed objects (objects with different versions).
Public propertyStatic member Session Gets or sets the default session.
Public propertyStatic member TrackPropertiesModifications Specifies the default value of the Session.TrackPropertiesModifications property of all Sessions.
Public propertyStatic member UseFastAccessors Gets or sets whether XPO uses its internal mechanism to create new instances of persistent classes, and to set and retrieve object property values.
Top

Expanded Public Methods

Show: Inherited
  Name Description
Public method Equals Determines whether the specified System.Object is equal to the current System.Object. (Inherited from System.Object)
Public methodStatic member Equals Determines whether the specified System.Object instances are considered equal. (Inherited from System.Object)
Public methodStatic member ForcePerformanceCountersCreation Forces the XPO to create performance counters.
Public methodStatic member GetConnectionPoolString Overloaded. Gets a connection pool's connection string based on a specified standard connection string and pool capacity.
Public methodStatic member GetConnectionProvider Overloaded. Creates an instance of a connection provider using the specified settings.
Public methodStatic member GetDataLayer Overloaded. Creates a data layer for the specified connection and the default metadata.
Public methodStatic member GetDictionary Gets the dictionary where metadata on persistent objects is stored by default.
Public method GetHashCode Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from System.Object)
Public methodStatic member GetTerminalInSize Overloaded. Returns the optimal packet size (the number of operands in a packet) for a specified number of operands passed to the DevExpress.Data.Filtering.InOperator.
Public method GetType Gets the System.Type of the current instance. (Inherited from System.Object)
Public methodStatic member NewGuid Generates a new globally unique identifier (GUID).
Public methodStatic member ReferenceEquals Determines whether the specified System.Object instances are the same instance. (Inherited from System.Object)
Public methodStatic member RegisterBonusProviders This member supports the internal infrastructure and is not intended to be used directly from your code.
Public method ToString Returns a System.String that represents the current System.Object. (Inherited from System.Object)
Top

Expanded Public Fields

Show: Inherited
  Name Description
Public fieldStatic member AppSettingsConnectionStringKey Returns the name of the application configuration file's key that specifies the default connection string. You can add this key to the application configuration file, and specify a connection string. In case the connection string isn't defined in the application, the connection string specified by this key will be used instead of the XPO's default MS Access connection string.
Public fieldStatic member CustomGuidGenerationHandler Specifies a Func<Guid> delegate called to generate a new GUID value. Refer to the GuidGenerationMode topic to see the example.
Public fieldStatic member DefaultIdentityMapBehavior Returns the default Identity Map behavior. See IdentityMapBehavior for details.
Public fieldStatic member DefaultOptimisticLockingReadBehavior Specifies the value which is assigned to the OptimisticLockingReadBehavior property when it is set to the OptimisticLockingReadBehavior.Default value. By default, this field returns the OptimisticLockingReadBehavior.Mixed value.
Public fieldStatic member GuidGenerationMode Specifies how globally unique identifiers are generated (if the KeyAttribute.AutoGenerate property is true). The default value is FrameworkDefault. To provide a custom Guid primary key generation algorithm, set this field to Custom and assign a Func<Guid> delegate to the CustomGuidGenerationHandler field. Refer to the GuidGenerationMode topic to see the example.
Top

Expanded See Also

Is this topic helpful?​​​​​​​