I'm on v2.0.0.0 Final, SelfService, SQL Server 2005.
If a do a GetMulti(Nothing) on my EmployeeCollection, and give this to a Janus hierarchical grid, I get all relationships shown.
I want to restrict this to just one relationship. There is a (1:n) relationship between Employee and EmpAccount, with EmpAccount having a multi-field Pk, with the second field on EmpAccount called Pk2Employee:
Public Class Form1
Dim clnEmps As New EmployeeCollection
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rclAccounts As New RelationCollection()
rclAccounts.Add(EmployeeEntity.Relations.EmpAccountEntityUsingPk2Employee)
clnEmps.GetMulti(Nothing, rclAccounts)
GridEX1.DataSource = clnEmps
GridEX1.Hierarchical = True
GridEX1.RetrieveStructure(True)
End Sub
But I can still see all tables.