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)
198
if (
_table
!= null)
200
if (!value &&
_table
.EnforceConstraints)
365
if (
_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);
498
if (
_table
!= null && IsInRelation())
702
internal void BindExpression() => DataExpression!.Bind(
_table
);
726
DataExpression testExpression = new DataExpression(
_table
, value, _dataType);
741
if (
_table
!= null)
743
for (int i = 0; i <
_table
.Constraints.Count; i++)
745
if (
_table
.Constraints[i].ContainsColumn(this))
747
throw ExceptionBuilder.ExpressionAndConstraint(this,
_table
.Constraints[i]);
766
if (
_table
!= null)
783
for (int i = 0; i <
_table
.RecordCapacity; i++)
790
_table
.EvaluateExpressions(this);
793
_table
.ResetInternalIndexes(this);
794
_table
.EvaluateDependentExpressions(this);
806
for (int i = 0; i <
_table
.RecordCapacity; i++)
813
_table
.EvaluateExpressions(this);
815
_table
.ResetInternalIndexes(this);
816
_table
.EvaluateDependentExpressions(this);
936
if (((oldValue < 0) || (value < oldValue)) && (null !=
_table
) &&
_table
.EnforceConstraints)
1009
_table
!.Columns.MoveTo(this, ordinal);
1019
UniqueConstraint? key =
_table
!.Constraints.FindKeyConstraint(this);
1022
_table
.Constraints.Remove(key);
1041
_table
!.Constraints.Add(key);
1077
_sortIndex =
_table
!.GetIndex(indexDesc, DataViewRowState.CurrentRows, null);
1089
public DataTable? Table =>
_table
;
1097
if (
_table
!= table)
1108
if (Unique &&
_table
!= null)
1121
private DataRow GetDataRow(int index) =>
_table
!._recordManager[index];
1130
_table
!._recordManager.VerifyRecord(record);
1138
_table
!._recordManager.VerifyRecord(record);
1142
Debug.Assert(null !=
_table
, "storage with no DataTable on column");
1182
Debug.Assert(null !=
_table
, "storage with no DataTable on column");
1226
if (
_table
!= null)
1234
for (IEnumerator e =
_table
.Constraints.GetEnumerator(); e.MoveNext();)
1241
_table
.Constraints.CanRemove(oldConstraint, true);
1247
if (
_table
!= null)
1255
Debug.Assert(
_table
.Constraints.FindKeyConstraint(this) == null, "Should not be a duplication constraint in collection");
1256
_table
.Constraints.Add(constraint);
1260
_table
.Constraints.Remove(oldConstraint!);
1307
if (value == MappingType.SimpleContent &&
_table
!= null)
1319
if (
_table
.XmlText != null &&
_table
.XmlText != this)
1323
if (
_table
.ElementColumnCount > threshold)
1331
if (
_table
!= null)
1335
_table
._xmlText = null;
1340
_table
.ElementColumnCount++;
1344
_table
.ElementColumnCount--;
1352
if (
_table
!= null)
1354
_table
.XmlText = this;
1423
foreach (DataRow dr in
_table
!.Rows)
1647
DataRelationCollection rels =
_table
!.ParentRelations;
1660
rels =
_table
.ChildRelations;
1812
_table
!.AddDependentColumn(expressionColumn);
1821
_table
!.RemoveDependentColumn(expressionColumn);
1826
Debug.Assert(
_table
!= null);
1837
if (col.
_table
!=
_table
)
1839
_table
.RemoveDependentColumn(this);
1842
_table
.RemoveDependentColumn(this);
1853
if (col.
_table
!=
_table
)
1855
_table
.AddDependentColumn(this);
1858
_table
.AddDependentColumn(this);
System\Data\DataColumnCollection.cs (3)
325
if (column.
_table
== _table)
329
if (column.
_table
!= null)
461
if (column.
_table
!= _table)
System\Data\DataTable.cs (6)
7074
Debug.Assert(column.
_table
!= null);
7078
int count = column.
_table
.Rows.Count;
7085
DataRow row = column.
_table
.Rows[j];
7105
DataRow row = column.
_table
.Rows[j];
7122
column.
_table
.ResetInternalIndexes(column);
7133
if ((dc.
_table
!= null) && !ReferenceEquals(column, dc))