1 write to _table
System.Data.Common (1)
System\Data\DataColumn.cs (1)
1116_table = table;
82 references to _table
System.Data.Common (82)
System\Data\DataColumn.cs (73)
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"); 1182Debug.Assert(null != _table, "storage with no DataTable on column"); 1226if (_table != null) 1234for (IEnumerator e = _table.Constraints.GetEnumerator(); e.MoveNext();) 1241_table.Constraints.CanRemove(oldConstraint, true); 1247if (_table != null) 1255Debug.Assert(_table.Constraints.FindKeyConstraint(this) == null, "Should not be a duplication constraint in collection"); 1256_table.Constraints.Add(constraint); 1260_table.Constraints.Remove(oldConstraint!); 1307if (value == MappingType.SimpleContent && _table != null) 1319if (_table.XmlText != null && _table.XmlText != this) 1323if (_table.ElementColumnCount > threshold) 1331if (_table != null) 1335_table._xmlText = null; 1340_table.ElementColumnCount++; 1344_table.ElementColumnCount--; 1352if (_table != null) 1354_table.XmlText = this; 1423foreach (DataRow dr in _table!.Rows) 1647DataRelationCollection rels = _table!.ParentRelations; 1660rels = _table.ChildRelations; 1812_table!.AddDependentColumn(expressionColumn); 1821_table!.RemoveDependentColumn(expressionColumn); 1826Debug.Assert(_table != null); 1837if (col._table != _table) 1839_table.RemoveDependentColumn(this); 1842_table.RemoveDependentColumn(this); 1853if (col._table != _table) 1855_table.AddDependentColumn(this); 1858_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)
7074Debug.Assert(column._table != null); 7078int count = column._table.Rows.Count; 7085DataRow row = column._table.Rows[j]; 7105DataRow row = column._table.Rows[j]; 7122column._table.ResetInternalIndexes(column); 7133if ((dc._table != null) && !ReferenceEquals(column, dc))