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