Version

PrimaryKey Property (DataSourceAdapter)

Implements primary key fields.
Syntax
'Declaration
 
Public Property PrimaryKey As DataField()
public DataField[] PrimaryKey {get; set;}
Remarks
The primary key must be set inside of the InitSchema method by the derived class implementation. For the data sources when the key cannot be determined or it is not set inside of the InitSchema method a new DataField object is created and added to the Schema. The records will contain a unique value that equals to the index inside of the records collection.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also