combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / IDataProvider Interface / SupportsAnyBaseTable Property
Example


In This Topic
    SupportsAnyBaseTable Property (IDataProvider)
    In This Topic

    A provider can display if any base table is allowed in the Designer or if the hierarchy of data sources has to be maintained.

    A typical example would be customers/orders in a XML file. If inserting "orders" would be allowed on the root level, randomly only the orders of the first customer would be displayed. The below example shows how to avoid that for the XmlDataProvider Class. By that it is only possible to directly insert the customer and to insert the orders one level deeper.

    Syntax
    'Declaration
     
    
    ReadOnly Property SupportsAnyBaseTable As Boolean
    bool SupportsAnyBaseTable {get;}
    property bool SupportsAnyBaseTable {
       bool get();
    }
    Example
    public bool SupportsAnyBaseTable
    {
        get
        {
            return false;
        }
    }
    Public Readonly Property SupportsAnyBaseTable() As Boolean
        Get
            Return False
        End Get
    End Property
    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