TX Text Control .NET for WPF

DataTableInfo Class

Class|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.

Description

The DataTableInfo class provides basic information about a data table in a data source.

Syntax

public class DataTableInfo

Examples

The following example includes the table name value from a Data Table Info object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Table Name: {dataTableInfo.TableName}");
Console.WriteLine("Data Table Info is ready for use.");

Members

Properties

PropertyDescription
ChildRelationsGets a DataRelationInfoCollection representing the parent-child-relationships this table has with other data tables. Is empty in case of the data source being an object, an IEnumerable or an assembly.
ChildTablesGets a DataTableInfoCollection representing the child-tables this table has. (Either according to the known data relations or, in case of an assembly or an object as a data source, to the properties of the involved classes)
ColumnsGets a DataColumnInfoCollection representing the columns of this data table.
TableNameGets the table name.