The SubsetAttribute class is used to indicate that the collection is a subset of the parent collection. The library uses the DatabaseObjects.Parent.DistinctValue property to determine the value to filter this table by using the field name specified in the attribute. For example if the collection was a set of InvoiceLines then the table would filter on the InvoiceID in the InvoicesLines table using the InvoiceID from the parent Invoice object. To further customer the subset (i.e. make it conditional) simply override the Subset function and do not specify a SubsetAttribute.Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 220.127.116.11
<Subset("InvoiceID")> Public Class InvoiceLines ...