Back to Devexpress

XPObjectSpaceProvider.XPDictionary Property

expressappframework-devexpress-dot-expressapp-dot-xpo-dot-xpobjectspaceprovider-af90816e.md

latest3.0 KB
Original Source

XPObjectSpaceProvider.XPDictionary Property

Returns a base class for metadata providers.

Namespace : DevExpress.ExpressApp.Xpo

Assembly : DevExpress.ExpressApp.Xpo.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Xpo

Declaration

csharp
public XPDictionary XPDictionary { get; }
vb
Public ReadOnly Property XPDictionary As XPDictionary

Property Value

TypeDescription
XPDictionary

An XPDictionary object that is a base class for metadata providers.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the XPDictionary 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-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application/CS/WinWebSolution.Module/Module.cs#L27

csharp
if(provider != null && !provider.IsInitialized) {
    provider.Initialize(((XPObjectSpaceProvider)e.ObjectSpaceProvider).XPDictionary,
        ConfigurationManager.ConnectionStrings["LegacyDatabaseConnectionString"].ConnectionString,

xaf-how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application/VB/WinWebSolution.Module/Module.vb#L29

vb
If provider IsNot Nothing AndAlso (Not provider.IsInitialized) Then
    provider.Initialize(CType(e.ObjectSpaceProvider, XPObjectSpaceProvider).XPDictionary, ConfigurationManager.ConnectionStrings("LegacyDatabaseConnectionString").ConnectionString, ConfigurationManager.ConnectionStrings("TempDatabaseConnectionString").ConnectionString)
End If

See Also

XPObjectSpaceProvider Class

XPObjectSpaceProvider Members

DevExpress.ExpressApp.Xpo Namespace