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