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
29 instantiations of DataTable
Accessibility_Core_App (2)
DataBindingExample.cs (1)
117DataTable stuTable = new("Students");
DataControls.cs (1)
18DataTable dataTable = new();
Microsoft.Data.Analysis (1)
DataFrame.IO.cs (1)
177var res = new DataTable();
PresentationFramework-SystemData (2)
SystemDataExtension.cs (2)
57DataTable table1 = new DataTable("Table1") 64DataTable 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)
3658tempDT = new DataTable(tables[i]);
System\Data\DataTable.cs (1)
2379destinationTable = 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)
1458table = new DataTable(typeName); 1585table = 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);
System.Windows.Forms.Tests (2)
BindingNavigatorTests.cs (1)
214DataTable dt = new();
System\Windows\Forms\DataGridViewTests.cs (1)
2872DataTable dt = new();
System.Windows.Forms.UI.IntegrationTests (2)
DataGridViewTests.cs (2)
22using DataTable dataTable = new(); 50using DataTable dataTable = new();
UnsupportedTypes (2)
CreateFrameworkTypes.cs (2)
174DataTable customerDataTable = new("Customers"); 175DataTable orderDataTable = new("Orders");
821 references to DataTable
Accessibility_Core_App (2)
DataBindingExample.cs (1)
117DataTable stuTable = new("Students");
DataControls.cs (1)
18DataTable dataTable = new();
Microsoft.Data.Analysis (4)
DataFrame.IO.cs (4)
142public void SaveTo(DataTable table) 175public DataTable ToTable() 177var res = new DataTable(); 235using var table = ToTable();
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1246using var table = dataFrame.ToTable();
netstandard (1)
netstandard.cs (1)
509[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataTable))]
PresentationFramework-SystemData (5)
SystemDataExtension.cs (5)
57DataTable table1 = new DataTable("Table1") 64DataTable table2 = new DataTable("Table2") 130DataTable dataTable = (value as DataView)?.Table; 190DataTable table = (drv != null) ? drv.DataView.Table : dr.Table; 217public 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; 1085/// Gets the <see cref='System.Data.DataTable'/> to which the column belongs to. 1089public DataTable? Table => _table; 1094internal void SetTable(DataTable? table) 1366if (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)
445DataTable dt = (DataTable)bf.Deserialize(memStream); 626/// comparisons within <see cref='System.Data.DataTable'/> 646foreach (DataTable table in Tables) 723foreach (DataTable table in Tables) 766DataTable? conflicting = Tables[value, Namespace]; 791foreach (DataTable dt in Tables) 916foreach (DataTable table in Tables) 928foreach (DataTable table in Tables) 950foreach (DataTable table in Tables) 1141/// Clones the structure of the <see cref='System.Data.DataSet'/>, including all <see cref='System.Data.DataTable'/> schemas, relations, and 1173DataTable dt = tbls[i].Clone(ds); 1219foreach (DataTable table in Tables) 1256foreach (DataTable table in Tables) 1258DataTable destTable = dsNew.Tables[table.TableName, table.Namespace]!; 1262DataTable.CopyRow(destTable, row); 1282DataTable table = Tables[i]; 1360DataTable table = Tables[i]; 1361DataTable destTable = dsNew.Tables[table.TableName, table.Namespace]!; 1369DataTable.CopyRow(destTable, table.Rows[j]); 1451internal static string GetRemotingDiffGram(DataTable table) 1505internal string GetXmlSchemaForRemoting(DataTable? table) 1555DataTable table = Tables[i]; 2077DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = default; 2439foreach (DataTable table in Tables) 2472foreach (DataTable t in newDs.Tables) 2533foreach (DataTable t in newDs.Tables) 2544foreach (DataTable t in newDs.Tables) 2607DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = default; 3000internal static DataRelationCollection GetParentRelations(DataTable table) => table.ParentRelations; 3073/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>. 3075public void Merge(DataTable table) 3090/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>. with a value to preserve changes 3093public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 3188internal void RaiseMergeFailed(DataTable? table, string conflict, MissingSchemaAction missingSchemaAction) 3200internal void OnClearFunctionCalled(DataTable? table) => ClearFunctionCalled?.Invoke(this, table); 3207protected internal virtual void OnRemoveTable(DataTable table) { } 3209internal void OnRemovedTable(DataTable table) 3223internal DataTable[] TopLevelTables() => TopLevelTables(false); 3225internal DataTable[] TopLevelTables(bool forSchema) 3229List<DataTable> topTables = new List<DataTable>(); 3236DataTable table = Tables[i]; 3245DataTable table = Tables[i]; 3253Array.Empty<DataTable>() : 3398internal static DataTable? FindTable(DataTable? baseTable, PropertyDescriptor[] props, int propStart) 3610public virtual void Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler? errorHandler, params DataTable[] tables) 3615foreach (DataTable dt in tables) 3645public void Load(IDataReader reader, LoadOption loadOption, params DataTable[] tables) => 3652var dataTables = new DataTable[tables.Length]; 3655DataTable? tempDT = Tables[tables[i]]; 3673var dataTables = new DataTable[Tables.Count]; 3681public 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 330DataTable table = ds.Tables[0]; 373List<DataTable> list = new List<DataTable>(); 634DataTable parentTable = (allConstraints == false) ? this : DataSet!.Tables[parentInfo[0]]; 642DataTable childTable = (allConstraints == false) ? this : DataSet!.Tables[childInfo[0]]; 1050_isTypedDataTable = (byte)((GetType() != typeof(DataTable)) ? 1 : 2); 1178/// Gets the collection of child relations for this <see cref='System.Data.DataTable'/>. 1207/// Resets the <see cref='System.Data.DataTable.Constraints'/> property to its default state. 1551/// Gets the collection of parent relations for this <see cref='System.Data.DataTable'/>. 1747/// Indicates whether the <see cref='System.Data.DataTable.PrimaryKey'/> property should be persisted. 1752/// Resets the <see cref='System.Data.DataTable.PrimaryKey'/> property to its default state. 1855private string GetInheritedNamespace(List<DataTable> visitedTables) 1879DataTable parentTable = nestedRelations[j].ParentTable; 1898/// Gets or sets the namespace for the <see cref='System.Data.DataTable'/>. 1903get { return _tableNamespace ?? GetInheritedNamespace(new List<DataTable>()); } 1913string realNamespace = value ?? GetInheritedNamespace(new List<DataTable>()); 1943DataTable childTable = rel.ChildTable; 1964rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1972CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1975internal void CheckNamespaceValidityForNestedParentRelations(string ns, DataTable parentTable) 2012/// Indicates whether the <see cref='System.Data.DataTable.Namespace'/> property should be persisted. 2017/// Resets the <see cref='System.Data.DataTable.Namespace'/> property to its default state. 2289/// Commits all the changes made to this table since the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called. 2325protected virtual DataTable CreateInstance() => (DataTable)Activator.CreateInstance(GetType(), true)!; 2327public virtual DataTable Clone() => Clone(null); 2329internal DataTable Clone(DataSet? cloneDS) 2334DataTable clone = CreateInstance(); 2347private static DataTable IncrementalCloneTo(DataTable sourceTable, DataTable targetTable) 2360private static DataTable CloneHierarchy(DataTable sourceTable, DataSet ds, Hashtable? visitedMap) 2365return ((DataTable)visitedMap[sourceTable]!); 2368DataTable? destinationTable = ds.Tables[sourceTable.TableName, sourceTable.Namespace]; 2396private DataTable CloneTo(DataTable clone, DataSet? cloneDS, bool skipExpressionColumns) 2519public DataTable Copy() 2524DataTable destTable = Clone(); 2978internal static void CopyRow(DataTable table, DataRow row) 3092public DataTable? GetChanges() 3097DataTable dtChanges = Clone(); 3122public DataTable? GetChanges(DataRowState rowStates) 3127DataTable dtChanges = Clone(); 3586/// Notifies the <see cref='System.Data.DataTable'/> that a <see cref='System.Data.DataColumn'/> is 3618/// Raises the <see cref='System.Data.DataTable.RowChanged'/> event. 3631/// Raises the <see cref='System.Data.DataTable.RowChanging'/> event. 3644/// Raises the <see cref='System.Data.DataTable.OnRowDeleting'/> event. 3657/// Raises the <see cref='System.Data.DataTable.OnRowDeleted'/> event. 3968/// since it was loaded, or the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called. 4589/// Returns the <see cref='System.Data.DataTable.TableName'/> and <see cref='System.Data.DataTable.DisplayExpression'/>, if there is one as a concatenated string. 4932public void Merge(DataTable table) => 4935public void Merge(DataTable table, bool preserveChanges) => 4938public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction) 4994adapter.FillFromReader(new DataTable[] { this }, reader, 0, 0); 5524private static bool CheckForClosureOnExpressions(DataTable dt, bool writeHierarchy) 5526List<DataTable> tableList = new List<DataTable>(); 5535private static bool CheckForClosureOnExpressionTables(List<DataTable> tableList) 5539foreach (DataTable datatable in tableList) 6309DataTable newDt; 6382List<DataTable> tableList = new List<DataTable>(); 6495DataTable? currentTable = null; 6541List<DataTable> tableList = new List<DataTable>(); 6551DataTable tempTable = currentTable; 6596foreach (DataTable tempTable in tableList) 6598DataTable destinationTable = DataSet.Tables[tempTable._tableName, tempTable.Namespace]!; 6599DataTable sourceTable = ds.Tables[tempTable._tableName, tempTable.Namespace]!; 6630foreach (DataTable tempTable in tableList) 6662private static void CreateTableList(DataTable currentTable, List<DataTable> tableList) 6673private static void CreateRelationList(List<DataTable> tableList, List<DataRelation> relationList) 6675foreach (DataTable table in tableList) 6725if (GetType() == typeof(DataTable)) 6823internal static List<DataTable>? t_usedTables; 6826private DataTable _targetTable; 6828internal void Prepare(DataTable table) 6839(t_usedTables ??= new List<DataTable>()).Add(table); 6888RowDiffIdUsageSection.t_usedTables ??= new List<DataTable>(); 6892DataTable table = ds.Tables[tableIndex]; 6914DataTable 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)
15private 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) 339DataTable? topTable = (DataTable?)_nodeToSchemaMap.GetSchemaForNode(e, FIgnoreNamespace(e)); 371DataTable table = row.Table; 403if (schema is DataTable) 516if (schema != null && schema is DataTable) 525r = ((DataTable)schema).CreateEmptyRow(); 615DataTable? table = _nodeToSchemaMap.GetSchemaForNode(_topMostNode, FIgnoreNamespace(_topMostNode)) as DataTable; 636DataTable? table = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 682private void LoadTopMostTable(DataTable table) 768DataTable? nestedTable = o as DataTable; 864private void LoadTable(DataTable table, bool isNested) 996DataTable? nestedTable = o as DataTable; 1015DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader)); 1306DataTable? nestedTable = o as DataTable; 1318DataTable? misplacedTable = _nodeToSchemaMap.GetTableForNode(_dataReader, FIgnoreNamespace(_dataReader));
System\Data\XMLDiffLoader.cs (13)
16private DataTable? _dataTable; 39private void CreateTablesHierarchy(DataTable dt) 53internal void LoadDiffGram(DataTable dt, XmlReader dataTextReader) 79DataTable? tableBefore; 131DataTable? tableBefore; 184DataTable? table; 224DataTable? table; 242row = (DataRow?)((DataTable)dt[i]!).RowDiffId[diffId]; 274private DataTable? GetTable(string tableName, string ns) 280return (DataTable?)_tables[0]; 284DataTable dt = (DataTable)_tables[i]!; 294private 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]; 545internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet? ds, DataTable? dt, bool writeHierarchy) 553DataTable[] top; 556DataTable _dt = dt!; 561foreach (DataTable table in ds.Tables) 775CreateRelations((DataTable)_tables[0]!); 943internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) 1016internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt) 1110internal void Save(DataTable dt, XmlWriter xw) 1124internal void Save(DataSet ds, DataTable? dt, XmlWriter xw) 1131internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy) 1138internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string>? multipleTargetConverter) 1392private string FindTargetNamespace(DataTable table) 1402DataTable parentTable = nestedParentRelations[i].ParentTable; 1441DataTable _table = col.Table!; 1600internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) 1608private static bool HasMixedColumns(DataTable table) 1727internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) 1745DataTable _table = table; 1932DataTable childTable = childRelations[j].ChildTable; 2266internal DataTable? _dt; 2288internal NewDiffgramGen(DataTable dt, bool writeHierarchy) 2303private void CreateTableHierarchy(DataTable dt) 2323rows += ((DataTable)tables[i]!).Rows.Count; 2328DataTable dt = (DataTable)tables[i]!; 2340if (((DataTable)_tables[i]!).Rows.Count > 0) 2355internal void Save(XmlWriter xmlw, DataTable? table) 2384GenerateTable((DataTable)_tables[i]!); 2402GenerateTableErrors((DataTable)_tables[i]!); 2416private void GenerateTable(DataTable table) 2428private void GenerateTableErrors(DataTable table) 2506DataTable table = row.Table; 2682private readonly DataTable? _dt; 2685private readonly DataTable[] _topLevelTables; 2696foreach (DataTable table in ds.Tables) 2702internal XmlDataTreeWriter(DataTable dt, bool writeHierarchy) 2709_topLevelTables = new DataTable[] { dt }; 2722_topLevelTables = new DataTable[] { dt }; 2726private DataTable[] CreateToplevelTables() 2731DataTable table = (DataTable)_dTables[i]!; 2755return Array.Empty<DataTable>(); 2758var temp = new DataTable[topTables.Count]; 2763private void CreateTablesHierarchy(DataTable dt) 2822DataTable tempTable = ((DataTable)_dTables[i]!); 2830DataTable tempDT = ((DataTable)_dTables[i]!); 2880if (((DataTable)_dTables[i]!)._xmlText != null) 2902foreach (DataRow row in ((DataTable)_dTables[i]!).Rows) 2909XmlDataRowWriter(row, ((DataTable)_dTables[i]!).EncodedTableName); 2913DataTable 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; 644public void LoadSchema(XmlSchemaSet schemaSet, DataTable dt) 690_tableDictionary = new Dictionary<DataTable, List<DataTable>>(); 693foreach (DataTable dt in ds.Tables) 810foreach (DataTable dt in ds!.Tables) 828DataTable? tmpTable = ds.Tables[ds.DataSetName, ds.Namespace]; 898internal void HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, bool isBase) 914DataTable? child; 988internal void HandleAttributes(XmlSchemaObjectCollection attributes, DataTable table, bool isBase) 1010private void HandleAttributeGroup(XmlSchemaAttributeGroup attributeGroup, DataTable table, bool isBase) 1040internal void HandleComplexType(XmlSchemaComplexType ct, DataTable table, ArrayList tableChildren, bool isNillable) 1172internal static DataColumn FindField(DataTable table, string field) 1199internal static DataColumn[] BuildKey(XmlSchemaIdentityConstraint keyNode, DataTable table) 1291DataTable? table = _ds!.Tables.GetTableSmart(tableName, tableNs); 1348if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1402DataTable? table = _ds!.Tables.GetTableSmart(tableName, tableNs); 1442internal DataTable InstantiateSimpleTable(XmlSchemaElement node) 1444DataTable? table; 1511_tableDictionary!.Add(table, new List<DataTable>()); 1556internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) 1558DataTable? table; 1636_tableDictionary!.Add(table, new List<DataTable>()); 1678foreach (DataTable _tableChild in tableChildren) 1761if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1956internal void HandleSimpleTypeSimpleContentColumn(XmlSchemaSimpleType typeNode, string strType, DataTable table, bool isBase, XmlAttribute[]? attrs, bool isNillable) 2094internal void HandleSimpleContentColumn(string strType, DataTable table, bool isBase, XmlAttribute[]? attrs, bool isNillable) 2196internal void HandleAttributeColumn(XmlSchemaAttribute attrib, DataTable table, bool isBase) 2360internal void HandleElementColumn(XmlSchemaElement elem, DataTable table, bool isBase) 2567List<DataTable> tableSequenceList = new List<DataTable>(); 2644DataTable? tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2662DataTable? child = HandleTable((XmlSchemaElement)el); 2686DataTable child = HandleTable((XmlSchemaElement)choiceEl)!; 2719List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2720foreach (DataTable dt in tableSequenceList) 2728private void AddTablesToList(List<DataTable> tableList, DataTable dt) 2733foreach (DataTable childTable in _tableDictionary![dt]) 2851internal DataTable? HandleTable(XmlSchemaElement node) 2863DataTable 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)
285foreach (DataTable t in _dataSet.Tables) 312private void BindToTable(DataTable t) 363DataTable dt = _mapper.SearchMatchingTableSchema(localName, namespaceURI); 1239DataTable[] orderedTables = OrderTables(ds); 1251DataTable t = orderedTables[i]; 1294DataTable? dt = _mapper.SearchMatchingTableSchema(rowElem, be); 1330internal void OnClearCalled(object oDataSet, DataTable? table) 1358DataTable table = row.Table; 1369DataTable tb = row.Table; 3041private DataTable[] OrderTables(DataSet? ds) 3043DataTable[]? retValue = null; 3046retValue = Array.Empty<DataTable>(); 3050retValue = new DataTable[ds.Tables.Count]; 3058retValue = new DataTable[ds!.Tables.Count]; 3059List<DataTable> tableList = new List<DataTable>(); 3061foreach (DataTable dt in ds.Tables) 3071foreach (DataTable dt in ds.Tables) 3083DataTable childTable = r.ChildTable; 3097private bool IsSelfRelatedDataTable(DataTable rootTable) 3099List<DataTable> tableList = new List<DataTable>(); 3103DataTable childTable = r.ChildTable; 3120DataTable childTable = r.ChildTable; 3141foreach (DataTable dt in ds.Tables)
System\Xml\XPathNodePointer.cs (2)
546DataTable table = row.Table; 567DataTable 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\net10.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); }
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
621if (comp is DataTable && FindComponent(components, (comp as DataTable)?.DataSet))
System.Windows.Forms.Tests (2)
BindingNavigatorTests.cs (1)
214DataTable dt = new();
System\Windows\Forms\DataGridViewTests.cs (1)
2872DataTable dt = new();
System.Windows.Forms.UI.IntegrationTests (2)
DataGridViewTests.cs (2)
22using DataTable dataTable = new(); 50using DataTable dataTable = new();
UnsupportedTypes (2)
CreateFrameworkTypes.cs (2)
174DataTable customerDataTable = new("Customers"); 175DataTable orderDataTable = new("Orders");