combit List & Label 29 - .NET Help
combit.Reporting Namespace / LlCore Class / LlDbAddTableRelation Method
Example


In This Topic
    LlDbAddTableRelation Method
    In This Topic

    This method can be used to define relations between the tables added via the LlDbAddTable Method. List & Label doesn't directly distinguish between different relation types. You simply pass a relation and it's ID and can query the current relation later at print time using the LlPrintDbGetCurrentTableRelation Method.

    Overload List
    Example
    // Pass the tables
    
    LL.Core.LlDbAddTable("Orders");
    LL.Core.LlDbAddTable("OrderDetails");
    LL.Core.LlDbAddTableRelation("OrderDetails", "Orders", "Orders2OrderDetails");
    LL.Core.LlDbSetMasterTable("Orders"); 
    
    // Localization
    LL.Dictionary.Tables.Add("Orders", "Bestellungen")
    LL.Dictionary.Tables.Add("OrderDetails", "Bestellposten")
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also