17 writes to PrimaryKey
System.Data (14)
fx\src\data\System\Data\Common\DbProviderFactoriesConfigurationHandler.cs (1)
275table.PrimaryKey = primaryKey;
fx\src\data\System\Data\ConstraintCollection.cs (5)
141Table.PrimaryKey = ((UniqueConstraint)constraint).ColumnsReference; 155Table.PrimaryKey = columns; 167Table.PrimaryKey = constraint.ColumnsReference; 385table.PrimaryKey = null; 627Table.PrimaryKey = null;
fx\src\data\System\Data\DataTable.cs (4)
1634PrimaryKey = null; 1898PrimaryKey = delayedSetPrimaryKey; 2254clone.PrimaryKey = key; 4361PrimaryKey = new DataColumn[] {
fx\src\data\System\Data\Merger.cs (1)
349targetTable.PrimaryKey = key;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
923_dataTable.PrimaryKey = keys;
fx\src\data\System\Data\XDRSchema.cs (1)
580table.PrimaryKey = cols;
fx\src\data\System\Data\XMLSchema.cs (1)
1217key[0].Table.PrimaryKey = key;
System.Web (1)
UI\TraceContext.cs (1)
678tab.PrimaryKey = col; // set the control id to be the primary key
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceViewSchema.cs (2)
43this.PrimaryKey = keys.ToArray(); 93this.PrimaryKey = keys.ToArray();
12 references to PrimaryKey
System.Data (12)
fx\src\data\System\Data\DataTable.cs (5)
1621/// Indicates whether the <see cref='System.Data.DataTable.PrimaryKey'/> property should be persisted. 1630/// Resets the <see cref='System.Data.DataTable.PrimaryKey'/> property to its default state. 2248DataColumn[] pkey = PrimaryKey; 4336DataColumn[] pkey = PrimaryKey; 4467if (this.PrimaryKey.Length == 0) {
fx\src\data\System\Data\DataTableReader.cs (1)
721foreach(DataColumn key in table.PrimaryKey) {
fx\src\data\System\Data\Merger.cs (2)
339DataColumn[] targetPKey = targetTable.PrimaryKey; 340DataColumn[] tablePKey = table.PrimaryKey;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
653bool addPrimaryKeys = (((0 == _dataTable.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 == _dataTable.Rows.Count)))
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
1106if (null != dt.PrimaryKey && 0 < dt.PrimaryKey.Length) { 1107foreach(DataColumn col in dt.PrimaryKey) {