Specifies the field name that uniquely identifies each object
within the collection. Typically, this is the field name of an identity or auto
increment field. If the SubSetAttribute has been specified
then the strDistinctFieldName need only be unique within the subset not the
entire table. The strDistinctFieldName and can be identical to the field name
specified with a KeyField attribute.
This attribute must be specified on a DatabaseObjects*UsingAttributes class.
This attribute is used to implement the IDatabaseObjects.DistinctFieldName
and IDatabaseObjects.DistinctFieldAutoIncrements functions.
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
Examples
CopyC#
<DistinctField("CustomerID", bAutoIncrements:=True)>
Public Class Customers
...