Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XafApplication.ObjectSpaceProviders Property

Gets a list of Object Space Providers used by XafApplication.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[Browsable(false)]
public IList<IObjectSpaceProvider> ObjectSpaceProviders { get; }

#Property Value

Type Description
IList<IObjectSpaceProvider>

An IList<IObjectSpaceProvider> list of Object Space Providers.

#Remarks

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

Note

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.

See Also