Back to Devexpress

MSSqlConnectionProvider.GetStorageTablesList(Boolean) Method

xpo-devexpress-dot-xpo-dot-db-dot-mssqlconnectionprovider-dot-getstoragetableslist-x28-system-dot-boolean-x29.md

latest3.2 KB
Original Source

MSSqlConnectionProvider.GetStorageTablesList(Boolean) Method

Returns a list of the available tables in the data store.

Namespace : DevExpress.Xpo.DB

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public override string[] GetStorageTablesList(
    bool includeViews
)
vb
Public Overrides Function GetStorageTablesList(
    includeViews As Boolean
) As String()

Parameters

NameTypeDescription
includeViewsBoolean

true , to include available database views in the resulting array; otherwise, false.

|

Returns

TypeDescription
String[]

An array of the table names in the data store.

|

Remarks

The GetStorageTables method allows you to get a specific table’s structure. The table’s name should specified by the method’s parameter.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetStorageTablesList(Boolean) method.

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.

XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/CS/DynamicDataTable/Form1.cs#L25

csharp
workSession = new Session(dal);
string[] tablesList = connectionProvider.GetStorageTablesList(false);
dynamicClasses = new Dictionary<string, DynamicDataTableClassInfo>(tablesList.Length);

XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/VB/DynamicDataTable/Form1.vb#L27

vb
workSession = New Session(dal)
Dim tablesList() As String = connectionProvider.GetStorageTablesList(False)
dynamicClasses = New Dictionary(Of String, DynamicDataTableClassInfo)(tablesList.Length)

See Also

MSSqlConnectionProvider Class

MSSqlConnectionProvider Members

DevExpress.Xpo.DB Namespace