138 references to Table
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
190
DataTable table = (drv != null) ? drv.DataView.Table : dr.
Table
;
System.Data.Common (136)
System\Data\Common\DBCommandBuilder.cs (2)
1240
DataTable dataTable = dataRow.
Table
;
1383
column = tablemapping.GetDataColumn(columnName, null, row.
Table
, _missingMappingAction, MissingSchemaAction.Error);
System\Data\Common\DbDataAdapter.cs (5)
761
DataColumn? dataColumn = mappings.GetDataColumn(columnName, null, row.
Table
, missingMapping, missingSchema);
794
DataColumn? dataColumn = mappings.GetDataColumn(columnName, null, row.
Table
, missingMapping, missingSchema);
863
if ((null != dataRows[i]) && (dataTable != dataRows[i].
Table
))
869
dataTable = dataRows[i].
Table
;
1530
SchemaMapping mapping = new SchemaMapping(this, null, rowUpdatedEvent.Row.
Table
, readerHandler, false, SchemaType.Mapped, rowUpdatedEvent.TableMapping.SourceTable, true, null, null);
System\Data\Common\DbProviderFactories.cs (1)
60
DataColumn? assemblyQualifiedNameColumn = providerRow.
Table
.Columns[AssemblyQualifiedNameColumnName];
System\Data\DataRow.cs (1)
1111
foreach (DataColumn dc in
Table
.Columns)
System\Data\DataRowCollection.cs (2)
102
public int IndexOf(DataRow? row) => (null == row) || (row.
Table
!= _table) || ((0 == row.RBTreeNodeId) && (row.RowState == DataRowState.Detached)) ?
179
if ((null == row) || (row.
Table
!= _table) || (-1 == row.rowID))
System\Data\DataRowComparer.cs (4)
155
int count = leftRow.
Table
.Columns.Count;
156
if (count != rightRow.
Table
.Columns.Count)
186
Debug.Assert(row.
Table
!= null);
187
if (row.
Table
.Columns.Count > 0)
System\Data\DataSet.cs (3)
1422
DataRelationCollection relations = row.
Table
.ParentRelations;
1430
int relatedTableIndex = Tables.IndexOf(relatedRow.
Table
);
1431
int relatedRowIndex = relatedRow.
Table
.Rows.IndexOf(relatedRow);
System\Data\DataTable.cs (28)
2174
targetRow._oldRecord = _recordManager.ImportRecord(row.
Table
, row._oldRecord);
2178
targetRow._newRecord = _recordManager.ImportRecord(row.
Table
, row._newRecord);
2200
oldRecord = _recordManager.CopyRecord(row.
Table
, row._oldRecord, targetRow._oldRecord);
2213
oldRecord = _recordManager.CopyRecord(row.
Table
, row._oldRecord, oldRecord);
2236
oldRecord = _recordManager.CopyRecord(row.
Table
, row._oldRecord, oldRecord);
2240
newRecord = _recordManager.CopyRecord(row.
Table
, row._newRecord, newRecord);
2273
DataColumn col = targetRow.
Table
.Columns[cols[i].ColumnName]!;
2756
if (row.
Table
!= this)
2989
oldRecord = table._recordManager.ImportRecord(row.
Table
, row._oldRecord);
2995
newRecord = table._recordManager.ImportRecord(row.
Table
, row._newRecord);
3013
DataColumn col = targetRow.
Table
.Columns[cols[i].ColumnName]!;
3247
oldRecord = _recordManager.ImportRecord(row.
Table
, row._oldRecord);
3253
newRecord = _recordManager.ImportRecord(row.
Table
, row._newRecord);
3273
DataColumn col = targetRow.
Table
.Columns[cols[i].ColumnName]!;
3290
if (row.
Table
!= this)
3948
int[] oldIndex = dr.
Table
.RemoveRecordFromIndexes(dr, version); // conditional, if it exists it will try to remove with no event fired
3950
int[] newIndex = dr.
Table
.InsertRecordToIndexes(dr, version); // conditional, it will insert if it qualifies, no event will be fired
3955
dr.
Table
.RecordChanged(oldIndex, newIndex);
4360
if (relation.ChildTable != row.
Table
)
4370
if (relation.ParentTable != row.
Table
)
5155
foreach (DataColumn dc in dataRow.
Table
.Columns)
7057
relatedRow.
Table
.EvaluateDependentExpressions(relatedRow.
Table
._dependentColumns, relatedRow, DataRowVersion.Original, null);
7061
relatedRow.
Table
.EvaluateDependentExpressions(relatedRow.
Table
._dependentColumns, relatedRow, DataRowVersion.Current, null);
7065
relatedRow.
Table
.EvaluateDependentExpressions(relatedRow.
Table
._dependentColumns, relatedRow, DataRowVersion.Proposed, null);
7216
if (cachedRow.
Table
!= dc.Table)
System\Data\DataTableExtensions.cs (1)
127
foreach (DataColumn column in current.
Table
.Columns)
System\Data\ForeignKeyConstraint.cs (8)
260
Debug.Assert(row.
Table
.DataSet != null);
278
if (row.
Table
.DataSet.EnforceConstraints)
306
r.
Table
.DeleteRow(r);
360
Debug.Assert(row.
Table
.DataSet != null);
387
if (row.RowState != DataRowState.Deleted && row.
Table
.DataSet.EnforceConstraints)
405
Debug.Assert(Table?.DataSet != null && row.
Table
.DataSet != null);
423
if (row.
Table
.DataSet.EnforceConstraints)
583
int parentKeyValuesRecord = childRow.
Table
.NewRecord();
System\Data\Merger.cs (9)
252
if (row.
Table
== null)
254
throw ExceptionBuilder.ArgumentNull($"{nameof(rows)}[{i}].{nameof(DataRow.
Table
)}");
258
if (row.
Table
.DataSet == _dataSet)
263
if (src != row.
Table
)
265
src = row.
Table
;
266
dst = MergeSchema(row.
Table
);
302
if (targetRow.
Table
._dependentColumns != null && targetRow.
Table
._dependentColumns.Count > 0)
304
targetRow.
Table
.EvaluateExpressions(targetRow, DataRowAction.Change, null);
System\Data\ProviderBase\SchemaMapping.cs (2)
197
DataColumnCollection columns = dataRow.
Table
.Columns;
1140
DataColumnCollection columns = schemaRow.
Table
.Columns;
System\Data\XmlDataLoader.cs (5)
112
r.
Table
.Rows.Add(r);
202
DataColumnCollection columns = row.
Table
.Columns;
371
DataTable table = row.
Table
;
419
if (c.Table == row.
Table
&& c.ColumnMapping != MappingType.Attribute && foundColumns[c] == null)
470
foreach (DataColumn c in row.
Table
.Columns)
System\Data\XMLDiffLoader.cs (1)
245
table = row.
Table
;
System\Data\xmlsaver.cs (26)
2449
_xmlw.WriteStartElement(prefix, row.
Table
.EncodedTableName, row.
Table
.Namespace);
2450
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.
Table
.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2474
_xmlw.WriteStartElement(prefix, row.
Table
.EncodedTableName, row.
Table
.Namespace);
2475
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.
Table
.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2506
DataTable table = row.
Table
;
2510
if ((state == DataRowState.Deleted) && (row.
Table
.NestedParentRelations.Length != 0))
2515
parentId = parentRow.
Table
.TableName + parentRow.rowID.ToString(CultureInfo.InvariantCulture);
2523
_xmlw.WriteStartElement(tablePrefix, row.
Table
.EncodedTableName, row.
Table
.Namespace);
2536
if ((row.
Table
.Columns[colNum].ColumnMapping == MappingType.Attribute) ||
2537
(row.
Table
.Columns[colNum].ColumnMapping == MappingType.Hidden))
2538
GenerateColumn(row, row.
Table
.Columns[colNum], DataRowVersion.Original);
2542
if ((row.
Table
.Columns[colNum].ColumnMapping == MappingType.Element) ||
2543
(row.
Table
.Columns[colNum].ColumnMapping == MappingType.SimpleContent))
2544
GenerateColumn(row, row.
Table
.Columns[colNum], DataRowVersion.Original);
2779
int colCount = row.
Table
.Columns.Count;
2786
DataColumn column = row.
Table
.Columns[colNum];
2929
foreach (DataRelation r in row.
Table
.ChildRelations)
2945
string prefix = (row.
Table
.Namespace.Length == 0) ? "" : row.
Table
.Prefix;
2947
_xmlw.WriteStartElement(prefix, encodedTableName, row.
Table
.Namespace);
2951
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.
Table
.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2971
foreach (DataColumn col in row.
Table
.Columns)
3000
foreach (DataColumn col in row.
Table
.Columns)
System\Xml\DataPointer.cs (1)
122
DataTable table = row.
Table
;
System\Xml\DataSetMappper.cs (1)
195
internal static DataTable? GetTableSchemaForElement(XmlBoundElement be) => be.Row?.
Table
;
System\Xml\XmlDataDocument.cs (33)
135
r.
Table
.Rows.Add(r);
174
r.
Table
.Rows.Add(r);
672
foreach (DataColumn col in row.
Table
.Columns)
788
foreach (DataRelation r in row.
Table
.ChildRelations)
807
DataRelation[] relations = row.
Table
.NestedParentRelations;
818
DataColumnCollection columns = row.
Table
.Columns;
826
Debug.Assert(c == row.
Table
.XmlText);
832
Debug.Assert(row.
Table
.XmlText == null);
835
return row.
Table
.XmlText;
854
for (i = 0; i < row.
Table
.Rows.Count; i++)
855
if (row == row.
Table
.Rows[i])
860
for (i = pos + 1; i < row.
Table
.Rows.Count; i++)
862
refRow = row.
Table
.Rows[i];
867
if (i < row.
Table
.Rows.Count)
1358
DataTable table = row.
Table
;
1369
DataTable tb = row.
Table
;
1578
Debug.Assert(relation.ChildTable == row.
Table
);
1629
if (((DataColumn)(_columnChangeList[0]!)).Table == row.
Table
)
1636
foreach (DataColumn c in row.
Table
.Columns)
1642
foreach (DataColumn c in row.
Table
.Columns)
2113
foreach (DataColumn c in row.
Table
.Columns)
2130
foreach (DataColumn c in row.
Table
.Columns)
2390
Debug.Assert(row.
Table
.DataSet!.EnforceConstraints == false);
2505
Debug.Assert(c.Table == row.
Table
);
2540
foreach (DataColumn c in row.
Table
.Columns)
2554
foreach (DataColumn c in row.
Table
.Columns)
2660
if (parentRow == null || rel.ParentKey.Table != parentRow.
Table
)
2756
Debug.Assert(row.
Table
.DataSet!.EnforceConstraints == false);
2758
row.
Table
.Rows.Add(row);
2780
Debug.Assert(row.
Table
.DataSet!.EnforceConstraints == false);
2818
Debug.Assert(row.
Table
.DataSet!.EnforceConstraints == false);
2908
DataRelation[] relations = childRow.
Table
.NestedParentRelations;
2909
if (relations.Length != 0 && relations[0].ParentTable == parentRow.
Table
) // just backward compatible
System\Xml\XPathNodePointer.cs (3)
405
foreach (DataColumn col in row.
Table
.Columns)
546
DataTable table = row.
Table
;
567
DataTable table = row.
Table
;
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
506
DataColumnCollection tableColumns = requestedCollectionRow.
Table
.Columns;