1 write to parentKey
System.Data (1)
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
720
this.
parentKey
= new DataKey(parentColumns, true);
28 references to parentKey
System.Data (28)
fx\src\data\System\Data\ForeignKeyConstraint.cs (28)
164
return
parentKey
.GetColumnNames();
199
Index parentIndex =
parentKey
.GetSortIndex();
224
Index parentIndex =
parentKey
.GetSortIndex();
240
object[] key = row.GetKeyValues(
parentKey
, row.RowState == DataRowState.Deleted ? DataRowVersion.Original : DataRowVersion.Default );
266
object[] currentKey = row.GetKeyValues(
parentKey
, DataRowVersion.Current);
288
object[] key = row.GetKeyValues(
parentKey
, DataRowVersion.Default);
344
object[] key = row.GetKeyValues(
parentKey
, row.RowState == DataRowState.Modified ? DataRowVersion.Current : DataRowVersion.Default );
369
if (row.HasKeyChanged(
parentKey
)) {// if key is not changed, this will not cause child to be stranded
381
object[] currentKey = row.GetKeyValues(
parentKey
, DataRowVersion.Current);
403
object[] proposedKey = row.GetKeyValues(
parentKey
, DataRowVersion.Proposed);
475
if (row.HasKeyChanged(
parentKey
)) {
514
object[] parentKeyValues = parentRow.GetKeyValues(
parentKey
, action == DataRowAction.Rollback ? version : DataRowVersion.Default);
527
Index parentIndex =
parentKey
.GetSortIndex();
530
if (childKey.Table ==
parentKey
.Table && childRow.tempRecord != -1) {
533
DataColumn column =
parentKey
.ColumnsReference[lo];
552
parentKey
.CheckState();
555
if (
parentKey
.Table.DataSet != childKey.Table.DataSet) {
559
for (int i = 0; i <
parentKey
.ColumnsReference.Length; i++) {
560
if (
parentKey
.ColumnsReference[i].DataType != childKey.ColumnsReference[i].DataType ||
561
((
parentKey
.ColumnsReference[i].DataType == typeof(DateTime)) && (
parentKey
.ColumnsReference[i].DateTimeMode != childKey.ColumnsReference[i].DateTimeMode) && ((
parentKey
.ColumnsReference[i].DateTimeMode & childKey.ColumnsReference[i].DateTimeMode) != DataSetDateTime.Unspecified)))
565
if (childKey.ColumnsEqual(
parentKey
)) {
607
return
parentKey
.ContainsColumn(column) || childKey.ContainsColumn(column);
788
return
parentKey
.ToArray();
795
return
parentKey
.ColumnsReference;
805
return
parentKey
;
832
return
parentKey
.Table;