Back to Devexpress

XPClassInfo.TableName Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-36e7563f.md

latest2.9 KB
Original Source

XPClassInfo.TableName Property

Gets the name of the table in the data layer in which the object’s data is stored.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public string TableName { get; }
vb
Public ReadOnly Property TableName As String

Property Value

TypeDescription
String

A String value which specifies the table’s name.

|

Remarks

Use the PersistentAttribute to specify the name of the table to map to.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TableName 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#L30

csharp
foreach(XPClassInfo ci in dictionary.Classes) {
    if(!IsTempDatabaseTable(ci.TableName)) {
        legacyDictionary.QueryClassInfo(ci.ClassType);

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

vb
For Each ci As XPClassInfo In dictionary.Classes
    If Not IsTempDatabaseTable(ci.TableName) Then
        legacyDictionary.QueryClassInfo(ci.ClassType)

See Also

Table

TableMapType

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace