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 IDatabaseObjects.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#
string DistinctFieldName()
Visual Basic
Function DistinctFieldName As String
Visual C++
String^ DistinctFieldName()

Return Value

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

Examples

CopyC#
Protected Function DistinctFieldName() As String Implements IDatabaseObjects.DistinctFieldName

    Return "ProductID"

End Function

See Also