combit List & Label 30 - .NET Help
combit.Reporting.DataProviders Namespace / ICanHandleUsedRelations Interface / SupportedAs1To1Relation Method

Name of the relation to check, if it can used as 1:1 relation.



SupportedAs1To1Relation Method

This function is used to mark relations as pure 1:n relations. By default, all relations whose ITableRow interface returns "true" for SupportsGetParentRow are displayed in the tree as 1:1 nodes within the corresponding tables. As an example you can see this in the provided sample application with its Northwind data source for the relation "Customers" below the table "Orders":

But if there are (some) relations for which this should not be the case, because they cannot be resolved backwards by the data source, this can be intercepted in this function.

Syntax
'Declaration
 
Function SupportedAs1To1Relation( _
   ByVal relationName As String _
) As Boolean
 

Parameters

relationName

Name of the relation to check, if it can used as 1:1 relation.

Remarks

For compatibility reasons, the default behavior of List & Label 24 and earlier can be restored by always returning "true".

Requirements

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

See Also