1 write to childKey
System.Data (1)
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
721
this.
childKey
= new DataKey(childColumns, true);
38 references to childKey
System.Data (38)
fx\src\data\System\Data\ForeignKeyConstraint.cs (38)
124
return
childKey
;
141
return
childKey
.ToArray();
158
return
childKey
.Table;
170
return
childKey
.GetColumnNames();
195
Index childIndex =
childKey
.GetSortIndex();
221
Index childIndex =
childKey
.GetSortIndex();
239
Index childIndex =
childKey
.GetSortIndex( row.RowState == DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows );
271
Index childIndex =
childKey
.GetSortIndex();
304
object[] proposedKey = new object[
childKey
.ColumnsReference.Length];
305
for (int i = 0; i <
childKey
.ColumnsReference.Length; i++)
314
rows[j].SetKeyValues(
childKey
, proposedKey);
320
object[] proposedKey = new object[
childKey
.ColumnsReference.Length];
321
for (int i = 0; i <
childKey
.ColumnsReference.Length; i++)
322
proposedKey[i] =
childKey
.ColumnsReference[i].DefaultValue;
330
rows[j].SetKeyValues(
childKey
, proposedKey);
343
Index childIndex =
childKey
.GetSortIndex( row.RowState == DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
386
Index childIndex =
childKey
.GetSortIndex();
408
rows[j].SetKeyValues(
childKey
, proposedKey);
415
object[] proposedKey = new object[
childKey
.ColumnsReference.Length];
416
for (int i = 0; i <
childKey
.ColumnsReference.Length; i++)
424
rows[j].SetKeyValues(
childKey
, proposedKey);
430
object[] proposedKey = new object[
childKey
.ColumnsReference.Length];
431
for (int i = 0; i <
childKey
.ColumnsReference.Length; i++)
432
proposedKey[i] =
childKey
.ColumnsReference[i].DefaultValue;
439
rows[j].SetKeyValues(
childKey
, proposedKey);
504
childRow.HasKeyChanged(
childKey
)) {
508
object[] childKeyValues = childRow.GetKeyValues(
childKey
);
517
childRow.Table.SetKeyValues(
childKey
, parentKeyValues, parentKeyValuesRecord);
518
if (
childKey
.RecordsEqual(childRow.tempRecord, parentKeyValuesRecord)) {
525
object[] childValues = childRow.GetKeyValues(
childKey
);
530
if (
childKey
.Table == parentKey.Table && childRow.tempRecord != -1) {
553
childKey
.CheckState();
555
if (parentKey.Table.DataSet !=
childKey
.Table.DataSet) {
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);