1 type derived from DataTable
System.Data.Common (1)
System\Data\TypedTableBase.cs (1)
16public abstract class TypedTableBase<T> : DataTable, IEnumerable<T> where T : DataRow
20 instantiations of DataTable
PresentationFramework-SystemData (2)
SystemDataExtension.cs (2)
55DataTable table1 = new DataTable("Table1"); 60DataTable table2 = new DataTable("Table2");
System.Data.Common (14)
System\Data\Common\DataTableMapping.cs (1)
149return new DataTable(dataSetTable);
System\Data\Common\DbProviderFactories.cs (1)
90DataTable toReturn = new DataTable(ProviderGroupColumnName) { Locale = CultureInfo.InvariantCulture };
System\Data\DataSet.cs (1)
3589tempDT = new DataTable(tables[i]);
System\Data\DataTable.cs (1)
2374destinationTable = new DataTable();
System\Data\DataTableCollection.cs (3)
202DataTable table = new DataTable(name); 209DataTable table = new DataTable(name, tableNamespace); 219DataTable table = new DataTable();
System\Data\DataTableExtensions.cs (1)
117table = new DataTable()
System\Data\DataTableReader.cs (1)
712DataTable tempSchemaTable = new DataTable("SchemaTable");
System\Data\DataView.cs (1)
1686DataTable dt = new DataTable();
System\Data\XDRSchema.cs (2)
572table = new DataTable(XmlConvert.DecodeName(typeName)); 658table = new DataTable(tbName);
System\Data\XMLSchema.cs (2)
1451table = new DataTable(typeName); 1577table = new DataTable(XmlConvert.DecodeName(typeName));
System.Data.Odbc (4)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
67destinationTable = new DataTable(collectionName) 166resultTable = new DataTable(collectionName)
System\Data\Odbc\OdbcDataReader.cs (1)
2186DataTable schematable = new DataTable("SchemaTable");
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
1066DataTable resultTable = new DataTable(tableName);
806 references to DataTable
netstandard (1)
netstandard.cs (1)
509[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataTable))]
PresentationFramework-SystemData (5)
SystemDataExtension.cs (5)
55DataTable table1 = new DataTable("Table1"); 60DataTable table2 = new DataTable("Table2"); 124DataTable dataTable = (value as DataView)?.Table; 184DataTable table = (drv != null) ? drv.DataView.Table : dr.Table; 212public DataTableToDataViewLink(DataTable dataTable, object target)
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
79[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataTable))]
System.Data.Common (734)
System\Data\Common\AdapterUtil.Common.cs (1)
707internal static DataRow[] SelectAdapterRows(DataTable dataTable, bool sorted)
System\Data\Common\DataAdapter.cs (25)
252public virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) 258protected virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable, IDataReader dataReader) 282return (DataTable[])value; 291protected virtual DataTable? FillSchema(DataTable dataTable, SchemaType schemaType, IDataReader dataReader) 311return (DataTable?)value; 320internal object? FillSchemaFromReader(DataSet? dataset, DataTable? datatable, SchemaType schemaType, string? srcTable, IDataReader dataReader) 322DataTable[]? dataTables = null; 351dataTables = new DataTable[1] { mapping.DataTable }; 363value = Array.Empty<DataTable>(); 412protected virtual int Fill(DataTable dataTable, IDataReader dataReader) 414DataTable[] dataTables = new DataTable[] { dataTable }; 418protected virtual int Fill(DataTable[] dataTables, IDataReader dataReader, int startRecord, int maxRecords) 512internal int FillFromReader(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int startRecord, int maxRecords) 518internal int FillFromReader(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int startRecord, int maxRecords, DataColumn? parentChapterColumn, object? parentChapterValue) 662private SchemaMapping FillMappingInternal(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn? parentChapterColumn, object? parentChapterValue) 674private SchemaMapping? FillMapping(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn? parentChapterColumn, object? parentChapterValue) 744private void OnFillErrorHandler(Exception e, DataTable? dataTable, object?[]? dataValues) 767private static DataTable[] AddDataTableToArray(DataTable[] tables, DataTable newTable) 776DataTable[] newTables = new DataTable[tables.Length + 1]; // add unique data table 801internal int FillFromReader(DataTable[] dataTables, IDataReader dataReader, int startRecord, int maxRecords)
System\Data\Common\DataColumnMapping.cs (3)
74public DataColumn? GetDataColumnBySchemaAction(DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction) 80public static DataColumn? GetDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction) 115internal static DataColumn? CreateDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction)
System\Data\Common\DataColumnMappingCollection.cs (1)
445public static DataColumn? GetDataColumn(DataColumnMappingCollection? columnMappings, string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction)
System\Data\Common\DataStorage.cs (1)
114internal readonly DataTable _table;
System\Data\Common\DataTableMapping.cs (2)
115public DataColumn? GetDataColumn(string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction) 127public DataTable? GetDataTableBySchemaAction(DataSet dataSet, MissingSchemaAction schemaAction)
System\Data\Common\DBCommandBuilder.cs (6)
318private DataTable? _dbSchemaTable; 569DataTable? schemaTable = null; 591DataTable dataTable = connection.GetSchema(DbMetaDataCollectionNames.DataSourceInformation); 648protected virtual DataTable? GetSchemaTable(DbCommand sourceCommand) 656private void BuildInformation(DataTable schemaTable) 1240DataTable dataTable = dataRow.Table;
System\Data\Common\DbConnection.cs (15)
154/// <returns>A <see cref="DataTable" /> that contains schema information.</returns> 159public virtual DataTable GetSchema() 169/// <returns>A <see cref="DataTable" /> that contains schema information.</returns> 177public virtual DataTable GetSchema(string collectionName) 188/// <returns>A <see cref="DataTable" /> that contains schema information.</returns> 212public virtual DataTable GetSchema(string collectionName, string?[] restrictionValues) 229public virtual Task<DataTable> GetSchemaAsync(CancellationToken cancellationToken = default) 233return Task.FromCanceled<DataTable>(cancellationToken); 242return Task.FromException<DataTable>(e); 259public virtual Task<DataTable> GetSchemaAsync( 265return Task.FromCanceled<DataTable>(cancellationToken); 274return Task.FromException<DataTable>(e); 292public virtual Task<DataTable> GetSchemaAsync(string collectionName, string?[] restrictionValues, 297return Task.FromCanceled<DataTable>(cancellationToken); 306return Task.FromException<DataTable>(e);
System\Data\Common\DbDataAdapter.cs (25)
292public DataTable? FillSchema(DataTable dataTable, SchemaType schemaType) 308public override DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) 316return Array.Empty<DataTable>(); // design-time support 328public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable) 344protected virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior) 366return (DataTable[])FillSchemaInternal(dataSet, null, schemaType, command, srcTable, behavior)!; 375protected virtual DataTable? FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior) 398return (DataTable?)FillSchemaInternal(null, dataTable, schemaType, command, srcTableName, behavior | CommandBehavior.SingleResult); 407private object? FillSchemaInternal(DataSet? dataset, DataTable? datatable, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior) 528public int Fill(DataTable dataTable) 534DataTable[] dataTables = new DataTable[1] { dataTable }; 545public int Fill(int startRecord, int maxRecords, params DataTable[] dataTables) 561protected virtual int Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior) 567DataTable[] dataTables = new DataTable[1] { dataTable }; 576protected virtual int Fill(DataTable[] dataTables, int startRecord, int maxRecords, IDbCommand command, CommandBehavior behavior) 613private int FillInternal(DataSet? dataset, DataTable[]? datatables, int startRecord, int maxRecords, string? srcTable, IDbCommand command, CommandBehavior behavior) 714internal DataTableMapping GetTableMapping(DataTable dataTable) 860DataTable? dataTable = null; 887public int Update(DataTable dataTable) 942DataTable? dataTable = tableMapping.GetDataTableBySchemaAction(dataSet, schemaAction); 1483private int UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
System\Data\Common\DbDataReader.cs (6)
79/// Returns a <see cref="DataTable" /> that describes the column metadata of the ><see cref="DbDataReader" />. 84/// <returns>A <see cref="DataTable" /> that describes the column metadata.</returns> 86public virtual DataTable? GetSchemaTable() 103public virtual Task<DataTable?> GetSchemaTableAsync(CancellationToken cancellationToken = default) 107return Task.FromCanceled<DataTable?>(cancellationToken); 116return Task.FromException<DataTable?>(e);
System\Data\Common\DbDataReaderExtensions.cs (1)
74DataTable? schemaTable = reader.GetSchemaTable();
System\Data\Common\DbDataSourceEnumerator.cs (1)
9public abstract DataTable GetDataSources();
System\Data\Common\DbProviderFactories.cs (2)
83public static DataTable GetFactoryClasses() 90DataTable toReturn = new DataTable(ProviderGroupColumnName) { Locale = CultureInfo.InvariantCulture };
System\Data\Common\DBSchemaRow.cs (2)
16internal static DbSchemaRow[] GetSortedSchemaRows(DataTable dataTable, bool returnProviderSpecificTypes) 46private static DataRow[] SelectRows(DataTable dataTable)
System\Data\Common\DBSchemaTable.cs (2)
57internal DataTable _dataTable; 62internal DbSchemaTable(DataTable dataTable, bool returnProviderSpecificTypes)
System\Data\Constraint.cs (2)
83/// Gets the <see cref='System.Data.DataTable'/> to which the constraint applies. 85public abstract DataTable? Table { get; }
System\Data\ConstraintCollection.cs (4)
12/// Represents a collection of constraints for a <see cref='System.Data.DataTable'/>. 19private readonly DataTable _table; 30internal ConstraintCollection(DataTable table) 60internal DataTable Table => _table;
System\Data\ConstraintEnumerator.cs (5)
37_constraints = ((DataTable)_tables.Current).Constraints.GetEnumerator(); 86private readonly DataTable _table; 88public ChildForeignKeyConstraintEnumerator(DataSet dataSet, DataTable inTable) : base(dataSet) 100private readonly DataTable _table; 102public ParentForeignKeyConstraintEnumerator(DataSet? dataSet, DataTable inTable) : base(dataSet)
System\Data\DataColumn.cs (6)
22/// Represents one column of data in a <see cref='System.Data.DataTable'/>. 45internal DataTable? _table; 1084/// Gets the <see cref='System.Data.DataTable'/> to which the column belongs to. 1088public DataTable? Table => _table; 1093internal void SetTable(DataTable? table) 1365if (DataTable.UpdatingCurrent(action))
System\Data\DataColumnChangeEventHandler.cs (1)
7/// Represents the method that will handle the <see cref='System.Data.DataTable.ColumnChanging'/> event.
System\Data\DataColumnCollection.cs (3)
15/// objects for a <see cref='System.Data.DataTable'/>. 22private readonly DataTable _table; 38internal DataColumnCollection(DataTable table)
System\Data\DataException.cs (3)
464public static Exception ConstraintAddFailed(DataTable table) => _InvalidConstraint(SR.Format(SR.DataConstraint_AddFailed, table.TableName)); 630public static Exception RemovePrimaryKey(DataTable table) => table.TableName.Length == 0 ? 669public static Exception TableInConstraint(DataTable table, Constraint constraint) => _Argument(SR.Format(SR.DataTable_InConstraint, table.TableName, constraint.ConstraintName));
System\Data\DataKey.cs (2)
69internal DataTable Table => _columns[0].Table!; 72DataTable? table = _columns[0].Table;
System\Data\DataRelation.cs (6)
177public virtual DataTable ChildTable 335public virtual DataTable ParentTable 428List<DataTable> list = new List<DataTable>(); 718DataTable parent = destination.Tables[ParentTable.TableName, ParentTable.Namespace]!; 719DataTable child = destination.Tables[ChildTable.TableName, ChildTable.Namespace]!;
System\Data\DataRelationCollection.cs (2)
524private readonly DataTable _table; 528internal DataTableRelationCollection(DataTable table, bool fParentCollection)
System\Data\DataRow.cs (6)
13/// Represents a row of data in a <see cref='System.Data.DataTable'/>. 17private readonly DataTable _table; 173/// Gets the <see cref='System.Data.DataTable'/> 176public DataTable Table => _table; 1455internal readonly DataTable _table; 1458internal DataRowBuilder(DataTable table, int record)
System\Data\DataRowCollection.cs (2)
24private readonly DataTable _table; 31internal DataRowCollection(DataTable table)
System\Data\DataRowCreatedEventHandler.cs (1)
7internal delegate void DataSetClearEventhandler(object sender, DataTable? table);
System\Data\DataRowView.cs (1)
140/// for the child <see cref="System.Data.DataTable"/>
System\Data\DataSet.cs (56)
435DataTable dt = (DataTable)bf.Deserialize(memStream); 616/// comparisons within <see cref='System.Data.DataTable'/> 636foreach (DataTable table in Tables) 713foreach (DataTable table in Tables) 756DataTable? conflicting = Tables[value, Namespace]; 781foreach (DataTable dt in Tables) 906foreach (DataTable table in Tables) 918foreach (DataTable table in Tables) 940foreach (DataTable table in Tables) 1131/// Clones the structure of the <see cref='System.Data.DataSet'/>, including all <see cref='System.Data.DataTable'/> schemas, relations, and 1163DataTable dt = tbls[i].Clone(ds); 1209foreach (DataTable table in Tables) 1246foreach (DataTable table in Tables) 1248DataTable destTable = dsNew.Tables[table.TableName, table.Namespace]!; 1252DataTable.CopyRow(destTable, row); 1272DataTable table = Tables[i]; 1350DataTable table = Tables[i]; 1351DataTable destTable = dsNew.Tables[table.TableName, table.Namespace]!; 1359DataTable.CopyRow(destTable, table.Rows[j]); 1440internal static string GetRemotingDiffGram(DataTable table) 1491internal string GetXmlSchemaForRemoting(DataTable? table) 1541DataTable table = Tables[i]; 2039DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = default; 2397foreach (DataTable table in Tables) 2429foreach (DataTable t in newDs.Tables) 2490foreach (DataTable t in newDs.Tables) 2501foreach (DataTable t in newDs.Tables) 2562DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = default; 2944internal static DataRelationCollection GetParentRelations(DataTable table) => table.ParentRelations; 3017/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>. 3019public void Merge(DataTable table) 3034/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>. with a value to preserve changes 3037public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 3132internal void RaiseMergeFailed(DataTable? table, string conflict, MissingSchemaAction missingSchemaAction) 3144internal void OnClearFunctionCalled(DataTable? table) => ClearFunctionCalled?.Invoke(this, table); 3151protected internal virtual void OnRemoveTable(DataTable table) { } 3153internal void OnRemovedTable(DataTable table) 3167internal DataTable[] TopLevelTables() => TopLevelTables(false); 3169internal DataTable[] TopLevelTables(bool forSchema) 3173List<DataTable> topTables = new List<DataTable>(); 3180DataTable table = Tables[i]; 3189DataTable table = Tables[i]; 3197Array.Empty<DataTable>() : 3342internal static DataTable? FindTable(DataTable? baseTable, PropertyDescriptor[] props, int propStart) 3541public virtual void Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler? errorHandler, params DataTable[] tables) 3546foreach (DataTable dt in tables) 3576public void Load(IDataReader reader, LoadOption loadOption, params DataTable[] tables) => 3583var dataTables = new DataTable[tables.Length]; 3586DataTable? tempDT = Tables[tables[i]]; 3604var dataTables = new DataTable[Tables.Count]; 3612public DataTableReader CreateDataReader(params DataTable[] dataTables)
System\Data\DataTable.cs (86)
162/// Initializes a new instance of the <see cref='System.Data.DataTable'/> class with no arguments. 181/// Initializes a new instance of the <see cref='System.Data.DataTable'/> class with the specified table 325DataTable table = ds.Tables[0]; 368List<DataTable> list = new List<DataTable>(); 629DataTable parentTable = (allConstraints == false) ? this : DataSet!.Tables[parentInfo[0]]; 637DataTable childTable = (allConstraints == false) ? this : DataSet!.Tables[childInfo[0]]; 1045_isTypedDataTable = (byte)((GetType() != typeof(DataTable)) ? 1 : 2); 1173/// Gets the collection of child relations for this <see cref='System.Data.DataTable'/>. 1202/// Resets the <see cref='System.Data.DataTable.Constraints'/> property to its default state. 1546/// Gets the collection of parent relations for this <see cref='System.Data.DataTable'/>. 1742/// Indicates whether the <see cref='System.Data.DataTable.PrimaryKey'/> property should be persisted. 1747/// Resets the <see cref='System.Data.DataTable.PrimaryKey'/> property to its default state. 1850private string GetInheritedNamespace(List<DataTable> visitedTables) 1874DataTable parentTable = nestedRelations[j].ParentTable; 1893/// Gets or sets the namespace for the <see cref='System.Data.DataTable'/>. 1898get { return _tableNamespace ?? GetInheritedNamespace(new List<DataTable>()); } 1908string realNamespace = value ?? GetInheritedNamespace(new List<DataTable>()); 1938DataTable childTable = rel.ChildTable; 1959rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1967CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1970internal void CheckNamespaceValidityForNestedParentRelations(string ns, DataTable parentTable) 2007/// Indicates whether the <see cref='System.Data.DataTable.Namespace'/> property should be persisted. 2012/// Resets the <see cref='System.Data.DataTable.Namespace'/> property to its default state. 2284/// Commits all the changes made to this table since the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called. 2320protected virtual DataTable CreateInstance() => (DataTable)Activator.CreateInstance(GetType(), true)!; 2322public virtual DataTable Clone() => Clone(null); 2324internal DataTable Clone(DataSet? cloneDS) 2329DataTable clone = CreateInstance(); 2342private static DataTable IncrementalCloneTo(DataTable sourceTable, DataTable targetTable) 2355private static DataTable CloneHierarchy(DataTable sourceTable, DataSet ds, Hashtable? visitedMap) 2360return ((DataTable)visitedMap[sourceTable]!); 2363DataTable? destinationTable = ds.Tables[sourceTable.TableName, sourceTable.Namespace]; 2391private DataTable CloneTo(DataTable clone, DataSet? cloneDS, bool skipExpressionColumns) 2514public DataTable Copy() 2519DataTable destTable = Clone(); 2973internal static void CopyRow(DataTable table, DataRow row) 3087public DataTable? GetChanges() 3092DataTable dtChanges = Clone(); 3117public DataTable? GetChanges(DataRowState rowStates) 3122DataTable dtChanges = Clone(); 3581/// Notifies the <see cref='System.Data.DataTable'/> that a <see cref='System.Data.DataColumn'/> is 3613/// Raises the <see cref='System.Data.DataTable.RowChanged'/> event. 3626/// Raises the <see cref='System.Data.DataTable.RowChanging'/> event. 3639/// Raises the <see cref='System.Data.DataTable.OnRowDeleting'/> event. 3652/// Raises the <see cref='System.Data.DataTable.OnRowDeleted'/> event. 3963/// since it was loaded, or the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called. 4584/// Returns the <see cref='System.Data.DataTable.TableName'/> and <see cref='System.Data.DataTable.DisplayExpression'/>, if there is one as a concatenated string. 4927public void Merge(DataTable table) => 4930public void Merge(DataTable table, bool preserveChanges) => 4933public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 4989adapter.FillFromReader(new DataTable[] { this }, reader, 0, 0); 5499private static bool CheckForClosureOnExpressions(DataTable dt, bool writeHierarchy) 5501List<DataTable> tableList = new List<DataTable>(); 5510private static bool CheckForClosureOnExpressionTables(List<DataTable> tableList) 5514foreach (DataTable datatable in tableList) 6273DataTable newDt; 6346List<DataTable> tableList = new List<DataTable>(); 6453DataTable? currentTable = null; 6499List<DataTable> tableList = new List<DataTable>(); 6509DataTable tempTable = currentTable; 6554foreach (DataTable tempTable in tableList) 6556DataTable destinationTable = DataSet.Tables[tempTable._tableName, tempTable.Namespace]!; 6557DataTable sourceTable = ds.Tables[tempTable._tableName, tempTable.Namespace]!; 6588foreach (DataTable tempTable in tableList) 6620private static void CreateTableList(DataTable currentTable, List<DataTable> tableList) 6631private static void CreateRelationList(List<DataTable> tableList, List<DataRelation> relationList) 6633foreach (DataTable table in tableList) 6676if (GetType() == typeof(DataTable)) 6764internal static List<DataTable>? t_usedTables; 6767private DataTable _targetTable; 6769internal void Prepare(DataTable table) 6780(t_usedTables ??= new List<DataTable>()).Add(table); 6829RowDiffIdUsageSection.t_usedTables ??= new List<DataTable>(); 6833DataTable table = ds.Tables[tableIndex]; 6855DataTable table = _targetDS.Tables[tableIndex];
System\Data\DataTableClearEvent.cs (2)
8public DataTableClearEventArgs(DataTable dataTable) 13public DataTable Table { get; }
System\Data\DataTableCollection.cs (57)
25private DataTable?[]? _delayedAddRangeTables; 52public DataTable this[int index] 59return (DataTable)_list[index]!; 71public DataTable? this[string? name] 84return (index < 0) ? null : (DataTable)_list[index]!; 88public DataTable? this[string? name, string tableNamespace] 102return (index < 0) ? null : (DataTable)_list[index]!; 107internal DataTable? GetTable(string name, string ns) 111DataTable table = (DataTable)_list[i]!; 122internal DataTable? GetTableSmart(string name, string? ns) 125DataTable? fTable = null; 128DataTable table = (DataTable)_list[i]!; 147public void Add(DataTable table) 169public void AddRange(DataTable?[]? tables) 182foreach (DataTable? table in tables) 200public DataTable Add(string? name) 202DataTable table = new DataTable(name); 207public DataTable Add(string? name, string? tableNamespace) 209DataTable table = new DataTable(name, tableNamespace); 217public DataTable Add() 219DataTable table = new DataTable(); 255private void ArrayAdd(DataTable table) => _list.Add(table); 277private void BaseAdd([NotNull] DataTable table) 316private void BaseGroupSwitch(DataTable[] oldArray, int oldLength, DataTable[] newArray, int newLength) 364private void BaseRemove(DataTable? table) 378public bool CanRemove(DataTable? table) => CanRemove(table, false); 380internal bool CanRemove([NotNullWhen(true)] DataTable? table, bool fThrowException) 466DataTable[] tables = new DataTable[_list.Count]; 476BaseGroupSwitch(tables, oldLength, Array.Empty<DataTable>(), 0); 518DataTable table = (DataTable)_list[i]!; 540DataTable table = (DataTable)_list[i]!; 549public void CopyTo(DataTable[] array, int index) 565array[index + i] = (DataTable)_list[i]!; 570/// Returns the index of a specified <see cref='System.Data.DataTable'/>. 572public int IndexOf(DataTable? table) 577if (table == (DataTable)_list[i]!) 616internal void ReplaceFromInference(List<DataTable> tableList) 637DataTable table = (DataTable)_list[i]!; 646DataTable dupTable = (DataTable)_list[j]!; 674DataTable table = (DataTable)_list[i]!; 690foreach (DataTable? table in _delayedAddRangeTables) 743DataTable table = (DataTable)_list[i]!; 746throw ExceptionBuilder.DuplicateTableName(((DataTable)_list[i]!).TableName); 758public void Remove(DataTable table) 781DataTable dt = this[index]; 802DataTable? dt = this[name]; 825DataTable? dt = this[name, tableNamespace];
System\Data\DataTableExtensions.cs (8)
21public static EnumerableRowCollection<DataRow> AsEnumerable(this DataTable source) 37public static DataTable CopyToDataTable<T>(this IEnumerable<T> source) 47public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table, LoadOption options) 75public static void CopyToDataTable<T>(this IEnumerable<T> source, DataTable table, LoadOption options, FillErrorEventHandler? errorHandler) 83private static DataTable LoadTableFromEnumerable<T>(IEnumerable<T> source, DataTable? table, LoadOption? options, FillErrorEventHandler? errorHandler) 227public static DataView AsDataView(this DataTable table) 229DataSetUtil.CheckArgumentNull<DataTable>(table, nameof(table));
System\Data\DataTablePropertyDescriptor.cs (2)
11public DataTable Table { get; } 13internal DataTablePropertyDescriptor(DataTable dataTable) : base(dataTable.TableName, null)
System\Data\DataTableReader.cs (16)
12private readonly DataTable[] _tables; 14private DataTable? _schemaTable; 18private DataTable _currentDataTable = default!; // Always initialized in Init 30public DataTableReader(DataTable dataTable) 34throw ExceptionBuilder.ArgumentNull(nameof(DataTable)); 36_tables = new DataTable[1] { dataTable }; 41public DataTableReader(DataTable[] dataTables) 45throw ExceptionBuilder.ArgumentNull(nameof(DataTable)); 52_tables = new DataTable[dataTables.Length]; 57throw ExceptionBuilder.ArgumentNull(nameof(DataTable)); 98internal DataTable CurrentDataTable => _currentDataTable; 128public override DataTable GetSchemaTable() 705internal static DataTable GetSchemaTableFromDataTable(DataTable table) 709throw ExceptionBuilder.ArgumentNull(nameof(DataTable)); 712DataTable tempSchemaTable = new DataTable("SchemaTable");
System\Data\DataTableReaderListener.cs (3)
10private DataTable? _currentDataTable; 34internal void UpdataTable(DataTable datatable) 38throw ExceptionBuilder.ArgumentNull(nameof(DataTable));
System\Data\DataTableTypeConverter.cs (1)
10public DataTableTypeConverter() : base(typeof(DataTable)) { }
System\Data\DataView.cs (20)
16/// Represents a databindable, customized view of a <see cref='System.Data.DataTable'/> 27private DataTable? _table; 58private DataTable? _delayedTable; 97internal DataView(DataTable? table, bool locked) 118/// specified <see cref='System.Data.DataTable'/>. 120public DataView(DataTable? table) : this(table, false) 127/// specified <see cref='System.Data.DataTable'/>. 130public DataView(DataTable table, string? RowFilter, string? Sort, DataViewRowState RowState) 163internal DataView(DataTable table, System.Predicate<DataRow>? predicate, System.Comparison<DataRow>? comparison, DataViewRowState RowState) 293/// projecting views of data on the <see cref='System.Data.DataTable'/>. 418return DataTable.FormatSortString(_table._primaryIndex); 465/// Gets or sets the source <see cref='System.Data.DataTable'/>. 470public DataTable? Table 1167DataTable? foundTable = DataSet.FindTable(_table, listAccessors, 0); 1194DataTable? foundTable = DataSet.FindTable(_table, listAccessors, 0); 1668public DataTable ToTable() => 1671public DataTable ToTable(string? tableName) => 1674public DataTable ToTable(bool distinct, params string[] columnNames) => 1677public DataTable ToTable(string? tableName, bool distinct, params string[] columnNames) 1686DataTable dt = new DataTable();
System\Data\DataViewListener.cs (4)
14private DataTable? _table; 94internal void RegisterMetaDataEvents(DataTable? table) 122DataTable? table = _table; 188private void RegisterListener(DataTable table)
System\Data\DataViewManager.cs (6)
93foreach (DataTable dt in _dataSet.Tables) 273DataTable? table = DataSet.FindTable(null, listAccessors, 0); 296DataTable? table = DataSet.FindTable(null, listAccessors, 0); 305public DataView CreateDataView(DataTable table) 334e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element!)) : 336e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element!)) :
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
24internal DataView GetDataView(DataTable table)
System\Data\DataViewSetting.cs (3)
13private DataTable? _table; 45public DataTable? Table => _table; 47internal void SetDataTable(DataTable table)
System\Data\DataViewSettingCollection.cs (11)
26public virtual DataViewSetting this[DataTable table] 54private DataTable? GetTable(string tableName) 56DataTable? dt = null; 65private DataTable? GetTable(int index) 67DataTable? dt = null; 80DataTable? dt = GetTable(tableName); 94DataTable? dt = GetTable(index); 103DataTable? dt = GetTable(index); 154internal void Remove(DataTable table) 174_tableEnumerator = Array.Empty<DataTable>().GetEnumerator(); 181public object Current => _dataViewSettings![(DataTable)_tableEnumerator.Current];
System\Data\EnumerableRowCollection.cs (5)
19internal abstract DataTable? Table { get; } 36private readonly DataTable? _table; 62internal override DataTable? Table 74internal EnumerableRowCollection(IEnumerable<TRow> enumerableRows, bool isDataViewable, DataTable? table) 90internal EnumerableRowCollection(DataTable table)
System\Data\FillErrorEventArgs.cs (3)
9private readonly DataTable? _dataTable; 13public FillErrorEventArgs(DataTable? dataTable, object?[]? values) 25public DataTable? DataTable => _dataTable;
System\Data\Filter\AggregateNode.cs (4)
33private DataTable? _childTable; 37internal AggregateNode(DataTable? table, FunctionId aggregateType, string columnName) : 42internal AggregateNode(DataTable? table, FunctionId aggregateType, string columnName, bool local, string? relationName) : base(table) 70internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\BinaryNode.cs (3)
20internal BinaryNode(DataTable? table, int op, ExpressionNode left, ExpressionNode right) : base(table) 27internal override void Bind(DataTable table, List<DataColumn> list) 1525internal LikeNode(DataTable? table, int op, ExpressionNode left, ExpressionNode right)
System\Data\Filter\ConstNode.cs (3)
15internal ConstNode(DataTable? table, ValueType type, object constant) : this(table, type, constant, true) 19internal ConstNode(DataTable? table, ValueType type, object constant, bool fParseQuotes) : base(table) 67internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\DataExpression.cs (4)
19private DataTable? _table; 25internal DataExpression(DataTable? table, string? expression) : this(table, expression, null) 30internal DataExpression(DataTable? table, string? expression, Type? type) 85internal void Bind(DataTable? table)
System\Data\Filter\ExpressionNode.cs (5)
12private DataTable? _table; 14protected ExpressionNode(DataTable? table) 35protected DataTable? table 40protected void BindTable(DataTable table) 46internal abstract void Bind(DataTable table, List<DataColumn> list);
System\Data\Filter\ExpressionParser.cs (2)
109private readonly DataTable? _table; 118internal ExpressionParser(DataTable? table)
System\Data\Filter\FunctionNode.cs (2)
43internal FunctionNode(DataTable? table, string name) : base(table) 85internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\LookupNode.cs (3)
18internal LookupNode(DataTable? table, string columnName, string? relationName) : base(table) 24internal override void Bind(DataTable table, List<DataColumn> list) 56DataTable parentTable = _relation.ParentTable;
System\Data\Filter\NameNode.cs (3)
16internal NameNode(DataTable? table, char[] text, int start, int pos) : base(table) 21internal NameNode(DataTable? table, string name) : base(table) 34internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\UnaryNode.cs (2)
18internal UnaryNode(DataTable? table, int op, ExpressionNode right) : base(table) 24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\ZeroOpNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\ForeignKeyConstraint.cs (8)
132public override DataTable? Table 496internal void CheckCanClearParentTable(DataTable table) 584DataTable.SetKeyValues(_childKey, parentKeyValues, parentKeyValuesRecord); 656/// this constraint when <see cref='System.Data.DataTable.AcceptChanges'/> 704DataTable table = destination.Tables[iDest]; 718DataTable relatedTable = destination.Tables[iDest]; 757internal ForeignKeyConstraint? Clone(DataTable destination) 923public virtual DataTable RelatedTable
System\Data\IDataAdapter.cs (1)
14DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType);
System\Data\IDataReader.cs (1)
12DataTable? GetSchemaTable();
System\Data\LinqDataView.cs (2)
36internal LinqDataView(DataTable table, SortExpressionBuilder<DataRow>? sortExpressionBuilder) 56DataTable table,
System\Data\MergeFailedEvent.cs (3)
8public MergeFailedEventArgs(DataTable? table, string conflict) 15/// Gets the name of the <see cref='System.Data.DataTable'/>. 17public DataTable? Table { get; }
System\Data\Merger.cs (22)
14private readonly DataTable? _dataTable; 31internal Merger(DataTable dataTable, bool preserveChanges, MissingSchemaAction missingSchemaAction) 58foreach (DataTable dt in _dataSet.Tables) 88foreach (DataTable sourceTable in source.Tables) 90DataTable targetTable; 116foreach (DataTable dt in _dataSet.Tables) 123internal void MergeTable(DataTable src) 158DataTable? dt = _dataTable; 193private void MergeTable(DataTable src, DataTable dst) 236DataTable? src = null; 237DataTable? dst = null; 312private DataTable? MergeSchema(DataTable table) 314DataTable? targetTable = null; 443private void MergeTableData(DataTable src) 445DataTable? dest = MergeSchema(src); 467private void MergeConstraints(DataTable table) 570DataTable parent = _IgnoreNSforTableLookup ? 574DataTable child = _IgnoreNSforTableLookup ? 626private static DataKey GetSrcKey(DataTable src, DataTable dst)
System\Data\PropertyCollection.cs (1)
12/// <see cref='System.Data.DataSet'/>, or <see cref='System.Data.DataTable'/>.
System\Data\ProviderBase\DataReaderContainer.cs (1)
56internal DataTable? GetSchemaTable()
System\Data\ProviderBase\SchemaMapping.cs (6)
36private DataTable? _dataTable; // the current DataTable, should never be null 40private readonly DataTable? _schemaTable; // will be null if Fill without schema 60internal SchemaMapping(DataAdapter adapter, DataSet? dataset, DataTable? datatable, DataReaderContainer dataReader, bool keyInfo, 179internal DataTable? DataTable 555DataTable? table = (items[i] as DataTable);
System\Data\RecordManager.cs (4)
11private readonly DataTable _table; 20internal RecordManager(DataTable table) 204internal int ImportRecord(DataTable src, int record) 210internal int CopyRecord(DataTable src, int record, int copy)
System\Data\RelationshipConverter.cs (2)
48DataTable parentTable = rel.ParentKey.Table; 49DataTable childTable = rel.ChildKey.Table;
System\Data\Select.cs (2)
14private readonly DataTable _table; 40public Select(DataTable table, string? filterExpression, string? sort, DataViewRowState recordStates)
System\Data\Selection.cs (5)
63private readonly DataTable _table; 88public Index(DataTable table, IndexField[] indexFields, DataViewRowState recordStates, IFilter? rowFilter) : 93public Index(DataTable table, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter? rowFilter) : 109private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow>? comparison, DataViewRowState recordStates, IFilter? rowFilter) 1007internal DataTable Table => _table;
System\Data\TypedTableBaseExtensions.cs (1)
92return new EnumerableRowCollection<TRow>(source as DataTable);
System\Data\TypeLimiter.cs (4)
91public static IDisposable? EnterRestrictedScope(DataTable dataTable) 104/// Given a <see cref="DataTable"/>, returns all of the <see cref="DataColumn.DataType"/> 107private static IEnumerable<Type> GetPreviouslyDeclaredDataTypes(DataTable dataTable) 121? dataSet.Tables.Cast<DataTable>().SelectMany(GetPreviouslyDeclaredDataTypes)
System\Data\UniqueConstraint.cs (3)
290DataTable table = destination.Tables[iDest]; 315internal UniqueConstraint? Clone(DataTable table) 429public override DataTable? Table
System\Data\XDRSchema.cs (9)
180internal DataTable? HandleTable(XmlElement node) 343internal void HandleColumn(XmlElement node, DataTable table) 521internal void HandleTypeNode(XmlElement typeNode, DataTable table, ArrayList tableChildren) 523DataTable? tableChild; 550internal DataTable InstantiateTable(DataSet dataSet, XmlElement node, XmlElement typeNode) 554DataTable? table; 607foreach (DataTable _tableChild in tableChildren) 643internal DataTable InstantiateSimpleTable(DataSet dataSet, XmlElement node) 647DataTable? table;
System\Data\XmlDataLoader.cs (22)
28private readonly DataTable? _dataTable; 55internal XmlDataLoader(DataTable datatable, bool IsXdr, bool ignoreSchema) 66internal XmlDataLoader(DataTable datatable, bool IsXdr, XmlElement topNode, bool ignoreSchema) 338DataTable? topTable = (DataTable?)_nodeToSchemaMap.GetSchemaForNode(e, FIgnoreNamespace(e)); 369DataTable table = row.Table; 401if (schema is DataTable) 513if (schema != null && schema is DataTable) 522r = ((DataTable)schema).CreateEmptyRow(); 610DataTable? table = _nodeToSchemaMap.GetSchemaForNode(_topMostNode, FIgnoreNamespace(_topMostNode)) as DataTable; 631DataTable? table = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 676private void LoadTopMostTable(DataTable table) 762DataTable? nestedTable = o as DataTable; 857private void LoadTable(DataTable table, bool isNested) 989DataTable? nestedTable = o as DataTable; 1008DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 1298DataTable? nestedTable = o as DataTable; 1310DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader));
System\Data\XMLDiffLoader.cs (13)
16private DataTable? _dataTable; 38private void CreateTablesHierarchy(DataTable dt) 51internal void LoadDiffGram(DataTable dt, XmlReader dataTextReader) 76DataTable? tableBefore; 127DataTable? tableBefore; 180DataTable? table; 220DataTable? table; 238row = (DataRow?)((DataTable)dt[i]!).RowDiffId[diffId]; 270private DataTable? GetTable(string tableName, string ns) 276return (DataTable?)_tables[0]; 280DataTable dt = (DataTable)_tables[i]!; 289private int ReadOldRowData(DataSet? ds, ref DataTable? table, ref int pos, XmlReader row)
System\Data\xmlsaver.cs (68)
119if (!((instance is DataSet) || (instance is DataTable) || (instance is DataColumn) || (instance is DataRelation))) 282private void GenerateConstraintNames(DataTable table, bool fromTable) 326GenerateConstraintNames((DataTable)tables[i]!, true); 332foreach (DataTable dt in ds.Tables) 352DataTable table = ds.Tables[t]; 419foreach (DataTable dt in ds.Tables) 427SetupAutoGenerated((DataTable)dt[i]!); 431internal void SetupAutoGenerated(DataTable dt) 477private void CreateTablesHierarchy(DataTable dt) 491private void CreateRelations(DataTable dt) 504private DataTable[] CreateToplevelTables() 509DataTable table = (DataTable)_tables[i]!; 533return Array.Empty<DataTable>(); 536var temp = new DataTable[topTables.Count]; 544internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet? ds, DataTable? dt, bool writeHierarchy) 552DataTable[] top; 555DataTable _dt = dt!; 560foreach (DataTable table in ds.Tables) 774CreateRelations((DataTable)_tables[0]!); 941internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) 1014internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt) 1106internal void Save(DataTable dt, XmlWriter xw) 1119internal void Save(DataSet ds, DataTable? dt, XmlWriter xw) 1125internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy) 1131internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string>? multipleTargetConverter) 1385private string FindTargetNamespace(DataTable table) 1395DataTable parentTable = nestedParentRelations[i].ParentTable; 1433DataTable _table = col.Table!; 1591internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) 1599private static bool HasMixedColumns(DataTable table) 1717internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) 1735DataTable _table = table; 1922DataTable childTable = childRelations[j].ChildTable; 2256internal DataTable? _dt; 2278internal NewDiffgramGen(DataTable dt, bool writeHierarchy) 2293private void CreateTableHierarchy(DataTable dt) 2313rows += ((DataTable)tables[i]!).Rows.Count; 2318DataTable dt = (DataTable)tables[i]!; 2330if (((DataTable)_tables[i]!).Rows.Count > 0) 2343internal void Save(XmlWriter xmlw, DataTable? table) 2372GenerateTable((DataTable)_tables[i]!); 2390GenerateTableErrors((DataTable)_tables[i]!); 2403private void GenerateTable(DataTable table) 2415private void GenerateTableErrors(DataTable table) 2492DataTable table = row.Table; 2667private readonly DataTable? _dt; 2670private readonly DataTable[] _topLevelTables; 2681foreach (DataTable table in ds.Tables) 2687internal XmlDataTreeWriter(DataTable dt, bool writeHierarchy) 2694_topLevelTables = new DataTable[] { dt }; 2707_topLevelTables = new DataTable[] { dt }; 2711private DataTable[] CreateToplevelTables() 2716DataTable table = (DataTable)_dTables[i]!; 2740return Array.Empty<DataTable>(); 2743var temp = new DataTable[topTables.Count]; 2748private void CreateTablesHierarchy(DataTable dt) 2806DataTable tempTable = ((DataTable)_dTables[i]!); 2814DataTable tempDT = ((DataTable)_dTables[i]!); 2863if (((DataTable)_dTables[i]!)._xmlText != null) 2885foreach (DataRow row in ((DataTable)_dTables[i]!).Rows) 2892XmlDataRowWriter(row, ((DataTable)_dTables[i]!).EncodedTableName); 2896DataTable dt = (DataTable)_dTables[i]!;
System\Data\XMLSchema.cs (49)
99internal static string GenUniqueColumnName(string proposedName, DataTable table) 122public DataTable table; 124public ConstraintTable(DataTable t, XmlSchemaIdentityConstraint c) 148private Dictionary<DataTable, List<DataTable>>? _tableDictionary; 416DataTable? table = _ds!.Tables.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace); 438DataTable? parent; 439DataTable? child; 643public void LoadSchema(XmlSchemaSet schemaSet, DataTable dt) 688_tableDictionary = new Dictionary<DataTable, List<DataTable>>(); 691foreach (DataTable dt in ds.Tables) 808foreach (DataTable dt in ds!.Tables) 826DataTable? tmpTable = ds.Tables[ds.DataSetName, ds.Namespace]; 895internal void HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, bool isBase) 911DataTable? child; 984internal void HandleAttributes(XmlSchemaObjectCollection attributes, DataTable table, bool isBase) 1005private void HandleAttributeGroup(XmlSchemaAttributeGroup attributeGroup, DataTable table, bool isBase) 1034internal void HandleComplexType(XmlSchemaComplexType ct, DataTable table, ArrayList tableChildren, bool isNillable) 1166internal static DataColumn FindField(DataTable table, string field) 1193internal static DataColumn[] BuildKey(XmlSchemaIdentityConstraint keyNode, DataTable table) 1285DataTable? table = _ds!.Tables.GetTableSmart(tableName, tableNs); 1342if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1396DataTable? table = _ds!.Tables.GetTableSmart(tableName, tableNs); 1435internal DataTable InstantiateSimpleTable(XmlSchemaElement node) 1437DataTable? table; 1504_tableDictionary!.Add(table, new List<DataTable>()); 1548internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) 1550DataTable? table; 1628_tableDictionary!.Add(table, new List<DataTable>()); 1670foreach (DataTable _tableChild in tableChildren) 1753if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1947internal void HandleSimpleTypeSimpleContentColumn(XmlSchemaSimpleType typeNode, string strType, DataTable table, bool isBase, XmlAttribute[]? attrs, bool isNillable) 2084internal void HandleSimpleContentColumn(string strType, DataTable table, bool isBase, XmlAttribute[]? attrs, bool isNillable) 2185internal void HandleAttributeColumn(XmlSchemaAttribute attrib, DataTable table, bool isBase) 2348internal void HandleElementColumn(XmlSchemaElement elem, DataTable table, bool isBase) 2554List<DataTable> tableSequenceList = new List<DataTable>(); 2631DataTable? tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2649DataTable? child = HandleTable((XmlSchemaElement)el); 2673DataTable child = HandleTable((XmlSchemaElement)choiceEl)!; 2706List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2707foreach (DataTable dt in tableSequenceList) 2715private void AddTablesToList(List<DataTable> tableList, DataTable dt) 2720foreach (DataTable childTable in _tableDictionary![dt]) 2837internal DataTable? HandleTable(XmlSchemaElement node) 2849DataTable table = InstantiateTable(node, (XmlSchemaComplexType)typeNode!, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty
System\Data\XmlToDatasetMap.cs (16)
67public object? this[DataTable table] 90public DataTable TableSchema; 92public TableSchemaInfo(DataTable tableSchema) 123public XmlToDatasetMap(DataTable dataTable, XmlNameTable nameTable) 132public XmlToDatasetMap(XmlNameTable nameTable, DataTable dataTable) 145private TableSchemaInfo? AddTableSchema(DataTable table, XmlNameTable nameTable) 167private TableSchemaInfo AddTableSchema(XmlNameTable nameTable, DataTable table) 266foreach (DataTable t in dataSet.Tables) 300foreach (DataTable t in dataSet.Tables) 345private void BuildIdentityMap(DataTable dataTable, XmlNameTable nameTable) 365private void BuildIdentityMap(XmlNameTable nameTable, DataTable dataTable) 375foreach (DataTable t in tableList) 416private static ArrayList GetSelfAndDescendants(DataTable dt) 424foreach (DataRelation childRelations in ((DataTable)tableList[nCounter]!).ChildRelations) 461public object? GetColumnSchema(DataTable table, XmlReader dataReader, bool fIgnoreNamespace) 492public DataTable? GetTableForNode(XmlReader node, bool fIgnoreNamespace)
System\Xml\DataPointer.cs (1)
122DataTable table = row.Table;
System\Xml\DataSetMappper.cs (10)
47foreach (DataTable t in _dataSet.Tables) 64internal DataTable SearchMatchingTableSchema(string localName, string namespaceURI) 67return (DataTable)(_tableSchemaMap[tid]!); 87internal DataTable? SearchMatchingTableSchema(XmlBoundElement? rowElem, XmlBoundElement elem) 91DataTable t = SearchMatchingTableSchema(elem.LocalName, elem.NamespaceURI); 184internal static DataTable? GetTableSchemaForElement(XmlElement elem) 195internal static DataTable? GetTableSchemaForElement(XmlBoundElement be) => be.Row?.Table; 248DataTable table = GetTableSchemaForElement(rowElem)!; 350private void AddTableSchema(DataTable table) 357DataTable table = col.Table!;
System\Xml\XmlDataDocument.cs (25)
293foreach (DataTable t in _dataSet.Tables) 322private void BindToTable(DataTable t) 375DataTable dt = _mapper.SearchMatchingTableSchema(localName, namespaceURI); 1249DataTable[] orderedTables = OrderTables(ds); 1261DataTable t = orderedTables[i]; 1305DataTable? dt = _mapper.SearchMatchingTableSchema(rowElem, be); 1342internal void OnClearCalled(object oDataSet, DataTable? table) 1373DataTable table = row.Table; 1384DataTable tb = row.Table; 3106private DataTable[] OrderTables(DataSet? ds) 3108DataTable[]? retValue = null; 3111retValue = Array.Empty<DataTable>(); 3115retValue = new DataTable[ds.Tables.Count]; 3123retValue = new DataTable[ds!.Tables.Count]; 3124List<DataTable> tableList = new List<DataTable>(); 3126foreach (DataTable dt in ds.Tables) 3136foreach (DataTable dt in ds.Tables) 3148DataTable childTable = r.ChildTable; 3162private bool IsSelfRelatedDataTable(DataTable rootTable) 3164List<DataTable> tableList = new List<DataTable>(); 3168DataTable childTable = r.ChildTable; 3185DataTable childTable = r.ChildTable; 3206foreach (DataTable dt in ds.Tables)
System\Xml\XPathNodePointer.cs (2)
544DataTable table = row.Table; 565DataTable table = row.Table;
System.Data.Odbc (58)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionClosed.cs (1)
30protected internal override DataTable GetSchema(DbConnectionFactory factory, DbConnectionPoolGroup poolGroup, DbConnection outerConnection, string collectionName, string?[]? restrictions)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (1)
256protected internal virtual DataTable GetSchema(DbConnectionFactory factory, DbConnectionPoolGroup poolGroup, DbConnection outerConnection, string collectionName, string?[]? restrictions)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (15)
53protected DataTable CloneAndFilterCollection(string collectionName, string[]? hiddenColumnNames) 55DataTable destinationTable; 60DataTable? sourceTable = _metaDataCollectionsDataSet.Tables[collectionName]; 104private DataTable ExecuteCommand(DataRow requestedCollectionRow, string?[]? restrictions, DbConnection connection) 106DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections]!; 111DataTable? resultTable = null; 113DataTable? schemaTable; 190private static DataColumn[] FilterColumns(DataTable sourceTable, string[]? hiddenColumnNames, DataColumnCollection destinationColumns) 229DataTable? metaDataCollectionsTable = _metaDataCollectionsDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections]; 313private void FixUpVersion(DataTable dataSourceInfoTable) 340DataTable? restrictionsTable; 388public virtual DataTable GetSchema(DbConnection connection, string collectionName, string?[]? restrictions) 392DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections]!; 396DataTable? requestedSchema; 498protected virtual DataTable PrepareCollection(string collectionName, string?[]? restrictions, DbConnection connection)
System\Data\Odbc\OdbcConnectionHelper.cs (3)
175public override DataTable GetSchema() 180public override DataTable GetSchema(string collectionName) 185public override DataTable GetSchema(string collectionName, string?[]? restrictionValues)
System\Data\Odbc\OdbcDataReader.cs (5)
55private DataTable? _schemaTable; // MDAC 68336 2184private DataTable NewSchemaTable() 2186DataTable schematable = new DataTable("SchemaTable"); 2222public override DataTable? GetSchemaTable() 2238DataTable schematable = NewSchemaTable();
System\Data\Odbc\OdbcMetaDataFactory.cs (33)
52DataTable? metaDataCollectionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections]; 62DataTable? restrictionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.Restrictions]; 167private static DataTable DataTableFromDataReader(OdbcDataReader reader, string tableName) 171DataTable resultTable = NewDataTableFromReader(reader, out values, tableName); 182private static void DataTableFromDataReaderDataTypes(DataTable dataTypesTable, OdbcDataReader dataReader, OdbcConnection connection) 184DataTable? schemaTable; 428private static DataTable DataTableFromDataReaderIndex(OdbcDataReader reader, 434DataTable resultTable = NewDataTableFromReader(reader, out values, tableName); 452private static DataTable DataTableFromDataReaderProcedureColumns(OdbcDataReader reader, string tableName, bool isColumn) 456DataTable resultTable = NewDataTableFromReader(reader, out values, tableName); 476private static DataTable DataTableFromDataReaderProcedures(OdbcDataReader reader, string tableName, short procedureType) 482DataTable resultTable = NewDataTableFromReader(reader, out values, tableName); 532private static DataTable GetColumnsCollection(string?[]? restrictions, OdbcConnection connection) 536DataTable? resultTable = null; 559private DataTable GetDataSourceInformationCollection(string?[]? restrictions, 568DataTable? dataSourceInformationTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataSourceInformation]; 778private DataTable GetDataTypesCollection(string?[]? restrictions, OdbcConnection connection) 788DataTable? dataTypesTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataTypes]; 821private static DataTable GetIndexCollection(string?[]? restrictions, OdbcConnection connection) 825DataTable? resultTable = null; 869private static DataTable GetProcedureColumnsCollection(string?[]? restrictions, OdbcConnection connection, bool isColumns) 873DataTable? resultTable = null; 906private static DataTable GetProceduresCollection(string?[]? restrictions, OdbcConnection connection) 910DataTable? resultTable = null; 962private DataTable GetReservedWordsCollection(string?[]? restrictions, OdbcConnection connection) 970DataTable? reservedWordsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.ReservedWords]; 1003private static DataTable GetTablesCollection(string?[]? restrictions, OdbcConnection connection, bool isTables) 1007DataTable? resultTable = null; 1064private static DataTable NewDataTableFromReader(OdbcDataReader reader, out object[] values, string tableName) 1066DataTable resultTable = new DataTable(tableName); 1068DataTable schemaTable = reader.GetSchemaTable()!; 1078protected override DataTable PrepareCollection(string collectionName, string?[]? restrictions, DbConnection connection) 1080DataTable? resultTable = null;
System.Data.OleDb (7)
artifacts\obj\System.Data.OleDb\Debug\net9.0\System.Data.OleDb.notsupported.cs (7)
118public System.Data.DataTable? GetOleDbSchemaTable(System.Guid schema, object?[]? restrictions) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 119public override System.Data.DataTable GetSchema() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 120public override System.Data.DataTable GetSchema(string collectionName) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 121public override System.Data.DataTable GetSchema(string collectionName, string?[]? restrictionValues) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 181public int Fill(System.Data.DataTable dataTable, object ADODBRecordSet) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 220public override System.Data.DataTable? GetSchemaTable() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 232public System.Data.DataTable GetElements() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }