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: 3.8.1.0

Syntax

C#
public class SubsetAttribute : Attribute
Visual Basic
Public Class SubsetAttribute _
	Inherits Attribute
Visual C++
public ref class SubsetAttribute : public Attribute

Examples

CopyC#
<Subset("InvoiceID")>
Public Class InvoiceLines
    ...

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    DatabaseObjects..::..SubsetAttribute

See Also