Should return 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 DatabaseObjects.SubSet function has been implemented then the DistinctFieldName need only be unique within the subset not the entire table. The DistinctFieldName and KeyFieldName can be identical. This function should almost always be implemented.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
protected virtual string DistinctFieldName()
Visual Basic
Protected Overridable Function DistinctFieldName As String
Visual C++
protected:
virtual String^ DistinctFieldName()

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.DatabaseObjects.DistinctFieldName"]

Implements

IDatabaseObjects..::..DistinctFieldName()()()()

Examples

CopyC#
Protected Overrides Function DistinctFieldName() As String

    Return "ProductID"

End Function

See Also