combit List & Label 25 - .NET Online Web Help
ChildTableName Property (ITableRelation)
Example 


combit.ListLabel25.DataProviders Namespace > ITableRelation Interface : ChildTableName Property
This property is accessed to query the child table name.
Syntax
'Declaration
 
ReadOnly Property ChildTableName As String
string ChildTableName {get;}
property String^ ChildTableName {
   String^ get();
}
Example
class DataRelationWrapper : ITableRelation
{
    private DataRelation _dataRelation;
    public DataRelationWrapper(DataRelation dataRelation)
    {
        _dataRelation = dataRelation;
    }
    #region IDataRelation Members

    public string RelationName
    {
        get { return _dataRelation.RelationName; }
    }

    public string ParentColumnName
    {
        get { return _dataRelation.ParentColumns[0].ColumnName; }
    }

    public string ChildColumnName
    {
        get { return _dataRelation.ChildColumns[0].ColumnName; }
    }

    public string ParentTableName
    {
        get { return _dataRelation.ParentColumns[0].Table.TableName; }
    }

    public string ChildTableName
    {
        get { return _dataRelation.ChildColumns[0].Table.TableName; }
    }

    #endregion
}
Class DataRelationWrapper
    Implements ITableRelation
    Private _dataRelation As DataRelation
    Public Sub New(dataRelation As DataRelation)
        _dataRelation = dataRelation
    End Sub
    #region IDataRelation Members

    Public Readonly Property RelationName() As String
        Get
            Return _dataRelation.RelationName
        End Get
    End Property

    Public Readonly Property ParentColumnName() As String
        Get
            Return _dataRelation.ParentColumns(0).ColumnName
        End Get
    End Property

    Public Readonly Property ChildColumnName() As String
        Get
            Return _dataRelation.ChildColumns(0).ColumnName
        End Get
    End Property

    Public Readonly Property ParentTableName() As String
        Get
            Return _dataRelation.ParentColumns(0).Table.TableName
        End Get
    End Property

    Public Readonly Property ChildTableName() As String
        Get
            Return _dataRelation.ChildColumns(0).Table.TableName
        End Get
    End Property
#End Region
End Class
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ITableRelation Interface
ITableRelation Members