Skip to main content
.NET Framework 4.5.2+

XafApplication.ObjectSpaceProviders Property

Gets a list of Object Space Providers used by XafApplication.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.1.dll


public IList<IObjectSpaceProvider> ObjectSpaceProviders { get; }

Property Value

Type Description

An IList<IObjectSpaceProvider> list of Object Space Providers.


To specify a custom Object Space Providers list, override the XafApplication.CreateDefaultObjectSpaceProviders method and pass the list to the CreateCustomObjectSpaceProviderEventArgs.ObjectSpaceProviders property.


When multiple Object Space Providers are registered in the XafApplication.ObjectSpaceProviders property, the ModuleUpdater.UpdateDatabaseAfterUpdateSchema method is executed multiple times, once for each registered Provider. In this method, before accessing an object of a particular type, check if the current Object Space supports this type using the IObjectSpace.CanInstantiate method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ObjectSpaceProviders property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also