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