273 references to Tables
Accessibility_Core_App (9)
DataBindingExample.cs (9)
73
if (dataSet.
Tables
[0].Rows.Count > 0)
75
for (int i = 0; i < dataSet.
Tables
[0].Rows.Count; i++)
79
Text = dataSet.
Tables
[0].Rows[i]["StuName"].ToString()
91
int row_Count = dataSet.
Tables
[0].Rows.Count;
92
int col_Count = dataSet.
Tables
[0].Columns.Count;
96
string colName = dataSet.
Tables
[0].Columns[j].ColumnName;
102
string itemName = dataSet.
Tables
[0].Rows[i][0].ToString();
108
item.SubItems.Add(dataSet.
Tables
[0].Rows[i][j].ToString());
140
stuDS.
Tables
.Add(stuTable);
PresentationFramework-SystemData (2)
SystemDataExtension.cs (2)
58
dataset.
Tables
.Add(table1);
63
dataset.
Tables
.Add(table2);
System.Data.Common (246)
System\Data\Common\DataTableMapping.cs (1)
139
DataTableCollection tables = dataSet.
Tables
;
System\Data\ConstraintCollection.cs (2)
809
parents[j] = _table.DataSet.
Tables
[constr._parentTableName]!.Columns[constr._parentColumnNames[j]]!;
811
parents[j] = _table.DataSet.
Tables
[constr._parentTableName, constr._parentTableNamespace]!.Columns[constr._parentColumnNames[j]]!;
System\Data\ConstraintEnumerator.cs (1)
20
_tables = dataSet?.
Tables
.GetEnumerator();
System\Data\DataRelation.cs (2)
718
DataTable parent = destination.
Tables
[ParentTable.TableName, ParentTable.Namespace]!;
719
DataTable child = destination.
Tables
[ChildTable.TableName, ChildTable.Namespace]!;
System\Data\DataRelationCollection.cs (4)
892
parents[j] = _dataSet.
Tables
[rel._parentTableName!]!.Columns[rel._parentColumnNames[j]]!;
896
parents[j] = _dataSet.
Tables
[rel._parentTableName!, rel._parentTableNamespace]!.Columns[rel._parentColumnNames[j]]!;
901
childs[j] = _dataSet.
Tables
[rel._childTableName!]!.Columns[rel._childColumnNames[j]]!;
905
childs[j] = _dataSet.
Tables
[rel._childTableName!, rel._childTableNamespace]!.Columns[rel._childColumnNames[j]]!;
System\Data\DataSet.cs (95)
134
for (int i = 0; i <
Tables
.Count; i++)
136
Tables
[i].RemotingFormat = value;
352
info.AddValue("DataSet.Tables.Count",
Tables
.Count);
355
for (int i = 0; i <
Tables
.Count; i++)
361
bf.Serialize(memStream,
Tables
[i]);
369
for (int i = 0; i <
Tables
.Count; i++)
371
Tables
[i].SerializeConstraints(info, i, true);
378
for (int i = 0; i <
Tables
.Count; i++)
380
Tables
[i].SerializeExpressionColumns(info, i);
390
for (int i = 0; i <
Tables
.Count; i++)
392
Tables
[i].SerializeTableData(info, i);
448
Tables
.Add(dt);
454
Tables
[i].DeserializeConstraints(info, /* table index */i, /* serialize all constraints */ true); //
463
Tables
[i].DeserializeExpressionColumns(info, i);
490
for (int i = 0; i <
Tables
.Count; i++)
492
Tables
[i].DeserializeTableData(info, i);
553
parentInfo[0] =
Tables
.IndexOf(rel.ParentTable);
560
childInfo[0] =
Tables
.IndexOf(rel.ChildTable);
597
parentkeyColumns[i] =
Tables
[parentInfo[0]].Columns[parentInfo[i + 1]];
604
childkeyColumns[i] =
Tables
[childInfo[0]].Columns[childInfo[i + 1]];
646
foreach (DataTable table in
Tables
)
723
foreach (DataTable table in
Tables
)
766
DataTable? conflicting =
Tables
[value, Namespace];
791
foreach (DataTable dt in
Tables
)
801
if (
Tables
.Contains(dt.TableName, value, false, true))
856
for (int i = 0; i <
Tables
.Count; i++)
858
if (
Tables
[i].HasErrors)
916
foreach (DataTable table in
Tables
)
928
foreach (DataTable table in
Tables
)
950
foreach (DataTable table in
Tables
)
961
if (!
Tables
[i].ShouldSerializeLocale())
963
Tables
[i].SetLocaleValue(oldLocale, false, true);
1004
for (int i = 0; i <
Tables
.Count; i++)
1006
if (
Tables
[i].Site != null)
1008
cont.Remove(
Tables
[i]);
1041
/// Indicates whether <see cref='System.Data.DataSet.
Tables
'/> property should be persisted.
1046
/// Resets the <see cref='System.Data.DataSet.
Tables
'/> property to its default state.
1048
private void ResetTables() =>
Tables
.Clear();
1065
for (int i = 0; i <
Tables
.Count; i++)
1067
Tables
[i].AcceptChanges();
1095
Tables
.FinishInitCollection();
1096
for (int i = 0; i <
Tables
.Count; i++)
1098
Tables
[i].Columns.FinishInitCollection();
1101
for (int i = 0; i <
Tables
.Count; i++)
1103
Tables
[i].Constraints.FinishInitConstraints();
1123
for (int i = 0; i <
Tables
.Count; i++)
1125
Tables
[i].Clear();
1153
if (ds.
Tables
.Count > 0) // To clean up all the schema in strong typed dataset.
1170
DataTableCollection tbls =
Tables
;
1176
ds.
Tables
.Add(dt);
1196
ds.
Tables
[i].Constraints.Add(constraints[j].Clone(ds)!);
1219
foreach (DataTable table in
Tables
)
1225
ds.
Tables
[table.TableName, table.Namespace]!.Columns[col.ColumnName]!.CopyExpressionFrom(col);
1232
ds.
Tables
[i]._tableNamespace = tbls[i]._tableNamespace; // undo the hardcoding of the namespace
1256
foreach (DataTable table in
Tables
)
1258
DataTable destTable = dsNew.
Tables
[table.TableName, table.Namespace]!;
1279
for (int i = 0; i <
Tables
.Count; i++)
1281
int rowBytes = (
Tables
[i].TableName.Length + 4) << 2;
1282
DataTable table =
Tables
[i];
1338
TableChanges[] bitMatrix = new TableChanges[
Tables
.Count];
1341
bitMatrix[i] = new TableChanges(
Tables
[i].Rows.Count);
1360
DataTable table =
Tables
[i];
1361
DataTable destTable = dsNew.
Tables
[table.TableName, table.Namespace]!;
1393
DataRowCollection rows =
Tables
[tableIndex].Rows;
1430
int relatedTableIndex =
Tables
.IndexOf(relatedRow.Table);
1553
for (int i = 0; i <
Tables
.Count; i++)
1555
DataTable table =
Tables
[i];
2098
if (
Tables
.Count == 0)
2225
if (!fSchemaFound &&
Tables
.Count == 0)
2252
if (!fSchemaFound &&
Tables
.Count == 0 && !topNode.HasChildNodes)
2288
Tables
.Contains(root.Name, (root.NamespaceURI.Length == 0) ? null : root.NamespaceURI, false, true))
2309
if (!fSchemaFound &&
Tables
.Count == 0)
2439
foreach (DataTable table in
Tables
)
2472
foreach (DataTable t in newDs.
Tables
)
2533
foreach (DataTable t in newDs.
Tables
)
2544
foreach (DataTable t in newDs.
Tables
)
3234
for (int i = 0; i <
Tables
.Count; i++)
3236
DataTable table =
Tables
[i];
3243
for (int i = 0; i <
Tables
.Count; i++)
3245
DataTable table =
Tables
[i];
3270
for (int i = 0; i <
Tables
.Count; i++)
3272
Tables
[i].RejectChanges();
3291
for (int i = 0; i <
Tables
.Count; i++)
3293
ConstraintCollection cons =
Tables
[i].Constraints;
3309
Tables
.Clear();
3334
for (int i = 0; i <
Tables
.Count; i++)
3336
constraints =
Tables
[i].Constraints;
3374
for (int i = 0; i <
Tables
.Count; i++)
3376
constraints =
Tables
[i].Constraints;
3655
DataTable? tempDT =
Tables
[tables[i]];
3659
Tables
.Add(tempDT);
3668
if (
Tables
.Count == 0)
3673
var dataTables = new DataTable[
Tables
.Count];
3674
for (int i = 0; i <
Tables
.Count; i++)
3676
dataTables[i] =
Tables
[i];
System\Data\DataTable.cs (35)
280
ds.
Tables
.Add(this);
294
_dataSet.
Tables
.Remove(this);
329
Debug.Assert(ds.
Tables
.Count == 1, "There should be exactly 1 table here");
330
DataTable table = ds.
Tables
[0];
337
ds.
Tables
.Remove(ds.
Tables
[0]);
338
ds.
Tables
.Add(this);
340
ds.
Tables
.Remove(this);
560
parentInfo[0] = allConstraints ? DataSet!.
Tables
.IndexOf(fk.RelatedTable) : 0;
567
childInfo[0] = allConstraints ? DataSet!.
Tables
.IndexOf(fk.Table) : 0; //Since the constraint is on the current table, this is the child table.
634
DataTable parentTable = (allConstraints == false) ? this : DataSet!.
Tables
[parentInfo[0]];
642
DataTable childTable = (allConstraints == false) ? this : DataSet!.
Tables
[childInfo[0]];
1797
_dataSet.
Tables
.RegisterName(value, Namespace);
1809
_dataSet.
Tables
.RegisterName(value, Namespace);
1820
_dataSet.
Tables
.UnregisterName(_tableName);
1918
if (_dataSet.
Tables
.Contains(TableName, realNamespace, true, true))
1944
if (_dataSet!.
Tables
.Contains(childTable.TableName, realNamespace, false, true))
2368
DataTable? destinationTable = ds.
Tables
[sourceTable.TableName, sourceTable.Namespace];
2381
ds.
Tables
.Add(destinationTable);
5431
ds.
Tables
.Add(this);
5441
ds.
Tables
.Remove(this);
5598
ds.
Tables
.Add(this);
5608
ds.
Tables
.Remove(this);
6501
currentTable = ds.
Tables
[_tableName, Namespace];
6505
int tableIndex = ds.
Tables
.InternalIndexOf(_tableName);
6508
currentTable = ds.
Tables
[tableIndex];
6522
currentTable = ds.
Tables
[CurrentTableName, CurrentTableNamespace];
6589
dataset.
Tables
.Add(this);
6598
DataTable destinationTable = DataSet.
Tables
[tempTable._tableName, tempTable.Namespace]!;
6599
DataTable sourceTable = ds.
Tables
[tempTable._tableName, tempTable.Namespace]!;
6649
DataSet.
Tables
[tempTable.TableName, tempTable.Namespace]!.Columns[dc.ColumnName]!.Expression = dc.Expression;
6890
for (int tableIndex = 0; tableIndex < ds.
Tables
.Count; ++tableIndex)
6892
DataTable table = ds.
Tables
[tableIndex];
6912
for (int tableIndex = 0; tableIndex < _targetDS.
Tables
.Count; ++tableIndex)
6914
DataTable table = _targetDS.
Tables
[tableIndex];
System\Data\DataViewManager.cs (4)
35
_dataSet.
Tables
.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged);
67
_dataSet.
Tables
.CollectionChanged -= new CollectionChangeEventHandler(TableCollectionChanged);
72
_dataSet.
Tables
.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged);
93
foreach (DataTable dt in _dataSet.
Tables
)
System\Data\DataViewManagerListItemTypeDescriptor.cs (2)
120
int tableCount = dataSet.
Tables
.Count;
124
props[i] = new DataTablePropertyDescriptor(dataSet.
Tables
[i]);
System\Data\DataViewSettingCollection.cs (4)
60
dt = ds.
Tables
[tableName];
71
dt = ds.
Tables
[index];
135
return (ds == null) ? 0 : ds.
Tables
.Count;
169
_tableEnumerator = dvm.DataSet!.
Tables
.GetEnumerator();
System\Data\ForeignKeyConstraint.cs (6)
691
iDest = destination.
Tables
.IndexOf(Table!.TableName);
695
iDest = destination.
Tables
.IndexOf(Table!.TableName, Table.Namespace, false); // pass false for last param
704
DataTable table = destination.
Tables
[iDest];
707
iDest = destination.
Tables
.IndexOf(RelatedTable.TableName);
711
iDest = destination.
Tables
.IndexOf(RelatedTable.TableName, RelatedTable.Namespace, false); // pass false for last param
718
DataTable relatedTable = destination.
Tables
[iDest];
System\Data\Merger.cs (19)
58
foreach (DataTable dt in _dataSet.
Tables
)
67
for (int i = 0; i < source.
Tables
.Count; i++)
69
MergeTableData(source.
Tables
[i]); // since column expression might have dependency on relation, we do not set
88
foreach (DataTable sourceTable in source.
Tables
)
93
targetTable = _dataSet.
Tables
[sourceTable.TableName]!;
97
targetTable = _dataSet.
Tables
[sourceTable.TableName, sourceTable.Namespace]!; // we know that target table won't be null since MissingSchemaAction is Add , we have already added it!
116
foreach (DataTable dt in _dataSet.
Tables
)
162
_dataSet.
Tables
[src.TableName] :
163
_dataSet.
Tables
[src.TableName, src.Namespace];
317
if (_dataSet!.
Tables
.Contains(table.TableName, true))
321
targetTable = _dataSet.
Tables
[table.TableName];
325
targetTable = _dataSet.
Tables
[table.TableName, table.Namespace];
342
_dataSet!.
Tables
.Add(targetTable);
461
for (int i = 0; i < source.
Tables
.Count; i++)
463
MergeConstraints(source.
Tables
[i]);
571
_dataSet.
Tables
[relation.ParentTable.TableName]! :
572
_dataSet.
Tables
[relation.ParentTable.TableName, relation.ParentTable.Namespace]!;
575
_dataSet.
Tables
[relation.ChildTable.TableName]! :
576
_dataSet.
Tables
[relation.ChildTable.TableName, relation.ChildTable.Namespace]!;
System\Data\ProviderBase\SchemaMapping.cs (3)
556
table?.DataSet?.
Tables
.Remove(table);
723
_dataSet.
Tables
.Add(_dataTable);
1071
_dataSet.
Tables
.Add(_dataTable);
System\Data\TypeLimiter.cs (1)
121
? dataSet.
Tables
.Cast<DataTable>().SelectMany(GetPreviouslyDeclaredDataTypes)
System\Data\UniqueConstraint.cs (3)
281
iDest = destination.
Tables
.IndexOf(Table!.TableName);
285
iDest = destination.
Tables
.IndexOf(Table!.TableName, Table.Namespace, false); // pass false for last param to be backward compatible
290
DataTable table = destination.
Tables
[iDest];
System\Data\XDRSchema.cs (5)
64
if (ds.
Tables
[_schemaName] == null)
565
table = dataSet.
Tables
.GetTable(typeName, _schemaUri);
581
_ds.
Tables
.Add(table);
652
table = dataSet.
Tables
.GetTable(typeName, _schemaUri);
670
_ds.
Tables
.Add(table);
System\Data\XMLDiffLoader.cs (3)
191
table = ds.
Tables
.GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI);
277
return _dataSet!.
Tables
.GetTable(tableName, ns);
299
table = ds.
Tables
.GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI);
System\Data\xmlsaver.cs (17)
332
foreach (DataTable dt in ds.
Tables
)
350
for (int t = 0; t < ds.
Tables
.Count; t++)
352
DataTable table = ds.
Tables
[t];
419
foreach (DataTable dt in ds.
Tables
)
561
foreach (DataTable table in ds.
Tables
)
1164
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(rel.ParentKey.Table.TableName) == -3))
1167
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(rel.ChildKey.Table.TableName) == -3))
2012
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(table.TableName) == -3))
2094
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(table.TableName) == -3))
2140
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(foreign.RelatedTable.TableName) == -3)) // if there is a conflicting name/namespace only
2281
for (int i = 0; i < ds.
Tables
.Count; i++)
2283
_tables.Add(ds.
Tables
[i]);
2375
for (int i = 0; i < _ds!.
Tables
.Count; ++i)
2377
GenerateTable(_ds.
Tables
[i]);
2393
for (int i = 0; i < _ds!.
Tables
.Count; ++i)
2395
GenerateTableErrors(_ds.
Tables
[i]);
2696
foreach (DataTable table in ds.
Tables
)
System\Data\XMLSchema.cs (22)
416
DataTable? table = _ds!.
Tables
.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace);
480
parent = _ds.
Tables
.GetTableSmart(parentName, parentNs);
485
child = _ds.
Tables
.GetTableSmart(childName, childNs);
659
bool newDataSet = (ds.
Tables
.Count == 0);
693
foreach (DataTable dt in ds.
Tables
)
810
foreach (DataTable dt in ds!.
Tables
)
828
DataTable? tmpTable = ds.
Tables
[ds.DataSetName, ds.Namespace];
834
if (FromInference && ds.
Tables
.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal))
844
if (ds.
Tables
.Count > 0)
846
ds.Namespace = ds.
Tables
[0].Namespace;
847
ds.Prefix = ds.
Tables
[0].Prefix;
1291
DataTable? table = _ds!.
Tables
.GetTableSmart(tableName, tableNs);
1402
DataTable? table = _ds!.
Tables
.GetTableSmart(tableName, tableNs);
1449
table = _ds!.
Tables
.GetTable(typeName, _TableUri);
1506
if (!FromInference || _ds.
Tables
.GetTable(typeName, _TableUri) == null)
1508
_ds.
Tables
.Add(table);
1566
table = _ds!.
Tables
.GetTable(XmlConvert.DecodeName(typeName), _TableUri);
1633
_ds.
Tables
.Add(table);
1696
if (_tableChild.DataSet!.
Tables
.InternalIndexOf(_tableChild.TableName) < -1)
2644
DataTable? tempTable = _ds.
Tables
.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace);
2719
List<DataTable> _tableList = new List<DataTable>(_ds.
Tables
.Count);
2724
_ds.
Tables
.ReplaceFromInference(_tableList); // replace the list with the one in correct order: BackWard compatibility for inference
System\Data\XmlToDatasetMap.cs (4)
264
_tableSchemaMap = new XmlNodeIdHashtable(dataSet.
Tables
.Count);
266
foreach (DataTable t in dataSet.
Tables
)
287
_tableSchemaMap = new XmlNodeIdHashtable(dataSet.
Tables
.Count);
300
foreach (DataTable t in dataSet.
Tables
)
System\Xml\DataSetMappper.cs (1)
47
foreach (DataTable t in _dataSet.
Tables
)
System\Xml\XmlDataDocument.cs (12)
196
if (_dataSet.
Tables
.Count > 0)
275
_dataSet.
Tables
.CollectionChanging += new CollectionChangeEventHandler(OnDataSetTablesChanging);
283
if (_dataSet.
Tables
.Count > 0)
285
foreach (DataTable t in _dataSet.
Tables
)
3044
if (ds == null || ds.
Tables
.Count == 0)
3050
retValue = new DataTable[ds.
Tables
.Count];
3051
ds.
Tables
.CopyTo(retValue, 0);
3058
retValue = new DataTable[ds!.
Tables
.Count];
3061
foreach (DataTable dt in ds.
Tables
)
3071
foreach (DataTable dt in ds.
Tables
)
3092
ds.
Tables
.CopyTo(retValue, 0);
3141
foreach (DataTable dt in ds.
Tables
)
System.Data.Odbc (16)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (5)
60
DataTable? sourceTable = _metaDataCollectionsDataSet.
Tables
[collectionName];
106
DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections]!;
229
DataTable? metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
349
restrictionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions];
392
DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections]!;
System\Data\Odbc\OdbcMetaDataFactory.cs (11)
52
DataTable? metaDataCollectionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
62
DataTable? restrictionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions];
127
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections]!);
128
CollectionDataSet.
Tables
.Add(metaDataCollectionsTable);
132
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions]!);
133
CollectionDataSet.
Tables
.Add(restrictionsTable);
568
DataTable? dataSourceInformationTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataSourceInformation];
788
DataTable? dataTypesTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataTypes];
970
DataTable? reservedWordsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.ReservedWords];