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: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
Examples
CopyC#
<Subset("InvoiceID")>
Public Class InvoiceLines
...