Back to Devexpress

XPDictionary.Classes Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-1ed89303.md

latest3.9 KB
Original Source

XPDictionary.Classes Property

When implemented by a class, gets a collection of the XPClassInfo objects that are supplied by the current metadata provider.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public abstract ICollection Classes { get; }
vb
Public MustOverride ReadOnly Property Classes As ICollection

Property Value

TypeDescription
ICollection

A collection of the XPClassInfo objects.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Classes 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/XpoDataStoreProxy.cs#L29

csharp
ReflectionDictionary tempDictionary = new ReflectionDictionary();
foreach(XPClassInfo ci in dictionary.Classes) {
    if(!IsTempDatabaseTable(ci.TableName)) {

XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/CS/Form1.cs#L96

csharp
private void Form1_Load(object sender, System.EventArgs e) {
    foreach(XPClassInfo info in XpoDefault.Session.Dictionary.Classes) {
        if(info.IsPersistent && info.IsVisibleInDesignTime)

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

vb
Dim tempDictionary As New ReflectionDictionary()
For Each ci As XPClassInfo In dictionary.Classes
    If Not IsTempDatabaseTable(ci.TableName) Then

XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/VB/Form1.vb#L96

vb
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
    For Each info As XPClassInfo In XpoDefault.Session.Dictionary.Classes
        If info.IsPersistent AndAlso info.IsVisibleInDesignTime Then comboBox1.Items.Add(info)

See Also

AddClassInfo(XPClassInfo)

Classes

XPDictionary Class

XPDictionary Members

DevExpress.Xpo.Metadata Namespace