1 write to _table
System.Data.Common (1)
System\Data\DataColumn.cs (1)
1115_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); 497if (_table != null && IsInRelation()) 701internal void BindExpression() => DataExpression!.Bind(_table); 725DataExpression testExpression = new DataExpression(_table, value, _dataType); 740if (_table != null) 742for (int i = 0; i < _table.Constraints.Count; i++) 744if (_table.Constraints[i].ContainsColumn(this)) 746throw ExceptionBuilder.ExpressionAndConstraint(this, _table.Constraints[i]); 765if (_table != null) 782for (int i = 0; i < _table.RecordCapacity; i++) 789_table.EvaluateExpressions(this); 792_table.ResetInternalIndexes(this); 793_table.EvaluateDependentExpressions(this); 805for (int i = 0; i < _table.RecordCapacity; i++) 812_table.EvaluateExpressions(this); 814_table.ResetInternalIndexes(this); 815_table.EvaluateDependentExpressions(this); 935if (((oldValue < 0) || (value < oldValue)) && (null != _table) && _table.EnforceConstraints) 1008_table!.Columns.MoveTo(this, ordinal); 1018UniqueConstraint? key = _table!.Constraints.FindKeyConstraint(this); 1021_table.Constraints.Remove(key); 1040_table!.Constraints.Add(key); 1076_sortIndex = _table!.GetIndex(indexDesc, DataViewRowState.CurrentRows, null); 1088public DataTable? Table => _table; 1096if (_table != table) 1107if (Unique && _table != null) 1120private DataRow GetDataRow(int index) => _table!._recordManager[index]; 1129_table!._recordManager.VerifyRecord(record); 1137_table!._recordManager.VerifyRecord(record); 1141Debug.Assert(null != _table, "storage with no DataTable on column"); 1181Debug.Assert(null != _table, "storage with no DataTable on column"); 1225if (_table != null) 1233for (IEnumerator e = _table.Constraints.GetEnumerator(); e.MoveNext();) 1240_table.Constraints.CanRemove(oldConstraint, true); 1246if (_table != null) 1254Debug.Assert(_table.Constraints.FindKeyConstraint(this) == null, "Should not be a duplication constraint in collection"); 1255_table.Constraints.Add(constraint); 1259_table.Constraints.Remove(oldConstraint!); 1306if (value == MappingType.SimpleContent && _table != null) 1318if (_table.XmlText != null && _table.XmlText != this) 1322if (_table.ElementColumnCount > threshold) 1330if (_table != null) 1334_table._xmlText = null; 1339_table.ElementColumnCount++; 1343_table.ElementColumnCount--; 1351if (_table != null) 1353_table.XmlText = this; 1422foreach (DataRow dr in _table!.Rows) 1646DataRelationCollection rels = _table!.ParentRelations; 1659rels = _table.ChildRelations; 1807_table!.AddDependentColumn(expressionColumn); 1816_table!.RemoveDependentColumn(expressionColumn); 1821Debug.Assert(_table != null); 1832if (col._table != _table) 1834_table.RemoveDependentColumn(this); 1837_table.RemoveDependentColumn(this); 1848if (col._table != _table) 1850_table.AddDependentColumn(this); 1853_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)
7015Debug.Assert(column._table != null); 7019int count = column._table.Rows.Count; 7026DataRow row = column._table.Rows[j]; 7046DataRow row = column._table.Rows[j]; 7063column._table.ResetInternalIndexes(column); 7074if ((dc._table != null) && !ReferenceEquals(column, dc))