14 writes to PrimaryKey
System.Data.Common (14)
System\Data\Common\DbProviderFactories.cs (1)
92toReturn.PrimaryKey = new[] { invariantNameColumn };
System\Data\ConstraintCollection.cs (5)
142Table.PrimaryKey = ((UniqueConstraint)constraint).ColumnsReference; 157Table.PrimaryKey = columns; 170Table.PrimaryKey = constraint.ColumnsReference; 425_table.PrimaryKey = null; 700Table.PrimaryKey = null;
System\Data\DataTable.cs (4)
1751PrimaryKey = null; 2042PrimaryKey = _delayedSetPrimaryKey; 2444clone.PrimaryKey = key; 4865PrimaryKey = new DataColumn[] { key };
System\Data\Merger.cs (1)
416targetTable.PrimaryKey = key;
System\Data\ProviderBase\SchemaMapping.cs (1)
1083_dataTable.PrimaryKey = keys;
System\Data\XDRSchema.cs (1)
603table.PrimaryKey = cols;
System\Data\XMLSchema.cs (1)
1424key[0].Table!.PrimaryKey = key;
9 references to PrimaryKey
System.Data.Common (9)
System\Data\DataTable.cs (5)
1742/// Indicates whether the <see cref='System.Data.DataTable.PrimaryKey'/> property should be persisted. 1747/// Resets the <see cref='System.Data.DataTable.PrimaryKey'/> property to its default state. 2436DataColumn[] pkey = PrimaryKey; 4833DataColumn[] pkey = PrimaryKey; 4974if (PrimaryKey.Length == 0)
System\Data\DataTableReader.cs (1)
847foreach (DataColumn key in table.PrimaryKey)
System\Data\Merger.cs (2)
403DataColumn[] targetPKey = targetTable.PrimaryKey; 404DataColumn[] tablePKey = table.PrimaryKey;
System\Data\ProviderBase\SchemaMapping.cs (1)
780bool addPrimaryKeys = (((0 == _dataTable.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 == _dataTable.Rows.Count)))