1 write to _table
System.Data.Common (1)
System\Data\DataColumn.cs (1)
1116_table = table;
81 references to _table
System.Data.Common (81)
System\Data\DataColumn.cs (72)
198if (_table != null) 200if (!value && _table.EnforceConstraints) 365if (_table != null) 372_table.Columns.RegisterColumnName(value, this); 375_table.Columns.UnregisterName(_columnName); 382_table?.Columns.OnColumnPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 389_table?.Columns.OnColumnPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 412((null != _table) ? _table.FormatProvider : CultureInfo.CurrentCulture); 416((null != _table) ? _table.Locale : CultureInfo.CurrentCulture); 498if (_table != null && IsInRelation()) 702internal void BindExpression() => DataExpression!.Bind(_table); 726DataExpression testExpression = new DataExpression(_table, value, _dataType); 741if (_table != null) 743for (int i = 0; i < _table.Constraints.Count; i++) 745if (_table.Constraints[i].ContainsColumn(this)) 747throw ExceptionBuilder.ExpressionAndConstraint(this, _table.Constraints[i]); 766if (_table != null) 783for (int i = 0; i < _table.RecordCapacity; i++) 790_table.EvaluateExpressions(this); 793_table.ResetInternalIndexes(this); 794_table.EvaluateDependentExpressions(this); 806for (int i = 0; i < _table.RecordCapacity; i++) 813_table.EvaluateExpressions(this); 815_table.ResetInternalIndexes(this); 816_table.EvaluateDependentExpressions(this); 936if (((oldValue < 0) || (value < oldValue)) && (null != _table) && _table.EnforceConstraints) 1009_table!.Columns.MoveTo(this, ordinal); 1019UniqueConstraint? key = _table!.Constraints.FindKeyConstraint(this); 1022_table.Constraints.Remove(key); 1041_table!.Constraints.Add(key); 1077_sortIndex = _table!.GetIndex(indexDesc, DataViewRowState.CurrentRows, null); 1089public DataTable? Table => _table; 1097if (_table != table) 1108if (Unique && _table != null) 1121private DataRow GetDataRow(int index) => _table!._recordManager[index]; 1130_table!._recordManager.VerifyRecord(record); 1138_table!._recordManager.VerifyRecord(record); 1142Debug.Assert(null != _table, "storage with no DataTable on column"); 1179Debug.Assert(null != _table, "storage with no DataTable on column"); 1221if (_table != null) 1229for (IEnumerator e = _table.Constraints.GetEnumerator(); e.MoveNext();) 1236_table.Constraints.CanRemove(oldConstraint, true); 1242if (_table != null) 1250Debug.Assert(_table.Constraints.FindKeyConstraint(this) == null, "Should not be a duplication constraint in collection"); 1251_table.Constraints.Add(constraint); 1255_table.Constraints.Remove(oldConstraint!); 1302if (value == MappingType.SimpleContent && _table != null) 1314if (_table.XmlText != null && _table.XmlText != this) 1318if (_table.ElementColumnCount > threshold) 1326if (_table != null) 1330_table._xmlText = null; 1335_table.ElementColumnCount++; 1339_table.ElementColumnCount--; 1347_table?.XmlText = this; 1415foreach (DataRow dr in _table!.Rows) 1639DataRelationCollection rels = _table!.ParentRelations; 1652rels = _table.ChildRelations; 1804_table!.AddDependentColumn(expressionColumn); 1813_table!.RemoveDependentColumn(expressionColumn); 1818Debug.Assert(_table != null); 1829if (col._table != _table) 1831_table.RemoveDependentColumn(this); 1834_table.RemoveDependentColumn(this); 1845if (col._table != _table) 1847_table.AddDependentColumn(this); 1850_table.AddDependentColumn(this);
System\Data\DataColumnCollection.cs (3)
325if (column._table == _table) 329if (column._table != null) 461if (column._table != _table)
System\Data\DataTable.cs (6)
7073Debug.Assert(column._table != null); 7077int count = column._table.Rows.Count; 7084DataRow row = column._table.Rows[j]; 7104DataRow row = column._table.Rows[j]; 7121column._table.ResetInternalIndexes(column); 7132if ((dc._table != null) && !ReferenceEquals(column, dc))