Back to Devexpress

XafApplication.ObjectSpaceProviderContainer Property

expressappframework-devexpress-dot-expressapp-dot-xafapplication-5609c375.md

latest2.1 KB
Original Source

XafApplication.ObjectSpaceProviderContainer Property

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[Browsable(false)]
public IObjectSpaceProviderContainer ObjectSpaceProviderContainer { get; }
vb
<Browsable(False)>
Public ReadOnly Property ObjectSpaceProviderContainer As IObjectSpaceProviderContainer

Property Value

Type
DevExpress.ExpressApp.Core.IObjectSpaceProviderContainer

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

Note

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.

xaf-how-to-change-connection-to-the-database-at-runtime/CS/XPO/NET_Framework/RuntimeDbChooser.Win/Controllers/CustomLogonController.cs#L11

csharp
if(Application.ConnectionString != newConnectionString) {
    Application.ObjectSpaceProviderContainer?.Clear();
    Application.ConnectionString = newConnectionString;

See Also

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace