372 references to Tables
System.Data (302)
fx\src\data\System\Data\CodeGen\datacache.cs (25)
80
foreach(DataTable table in dataSet.
Tables
) {
83
foreach(DataTable table in dataSet.
Tables
) {
173
if ((table.DataSet.
Tables
.InternalIndexOf(table.TableName) == -3) && !conflictingTables.Contains(table.TableName)) {
1021
for (int i = 0; i < dataSet.
Tables
.Count; i++) {
1022
dataSetClass.Members.Add(FieldDecl(TableClassName(dataSet.
Tables
[i]), TableFieldName(dataSet.
Tables
[i])));
1068
for (int i = 0; i < dataSet.
Tables
.Count; i++) {
1071
If(IdNotEQ(Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.
Tables
[i].TableName)),Primitive(null)),
1072
Stm(MethodCall(Property(This(), "Tables"), "Add", New(TableClassName(dataSet.
Tables
[i]), new CodeExpression[] {Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.
Tables
[i].TableName))})))
1143
for (int i = 0; i < dataSet.
Tables
.Count; i++) {
1144
CodeExpression fieldTable = Field(This(), TableFieldName(dataSet.
Tables
[i]));
1146
initClassMethod.Statements.Add(Assign(fieldTable, New(TableClassName(dataSet.
Tables
[i]), new CodeExpression[] {})));
1153
initVarsMethod.Statements.Add(Assign(fieldTable, Cast(TableClassName(dataSet.
Tables
[i]), Indexer(Property(This(),"Tables"),Str(dataSet.
Tables
[i].TableName)))));
1227
for (int i = 0; i < dataSet.
Tables
.Count; i++) {
1230
If(IdNotEQ(Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.
Tables
[i].TableName)),Primitive(null)),
1231
Stm(MethodCall(Property(This(), "Tables"), "Add", New(TableClassName(dataSet.
Tables
[i]), new CodeExpression[] {Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.
Tables
[i].TableName))})))
1263
foreach(DataTable table in dataSet.
Tables
) {
1357
for (int i = 0; i < dataSet.
Tables
.Count; i++) {
1358
string TableProperty = TablePropertyName(dataSet.
Tables
[i]);
1359
CodeMemberProperty prop = PropertyDecl(TableClassName(dataSet.
Tables
[i]), TableProperty, MemberAttributes.Public | MemberAttributes.Final); {
1366
prop.GetStatements.Add(Return(Field(This(), TableFieldName(dataSet.
Tables
[i]))));
1392
foreach(DataTable table in dataSet.
Tables
) {
fx\src\data\System\Data\Common\DataTableMapping.cs (1)
146
DataTableCollection tables = dataSet.
Tables
;
fx\src\data\System\Data\Common\DbProviderFactories.cs (1)
237
_providerTable = (null != configTable) ? IncludeFrameworkFactoryClasses(configTable.
Tables
[DbProviderFactoriesConfigurationHandler.providerGroup]) : IncludeFrameworkFactoryClasses(null);
fx\src\data\System\Data\Common\DbProviderFactoriesConfigurationHandler.cs (1)
178
DataTableCollection tables = config.
Tables
;
fx\src\data\System\Data\ConstraintCollection.cs (2)
719
parents[j] = table.DataSet.
Tables
[constr.parentTableName].Columns[constr.parentColumnNames[j]];
721
parents[j] = table.DataSet.
Tables
[constr.parentTableName, constr.parentTableNamespace].Columns[constr.parentColumnNames[j]];
fx\src\data\System\Data\ConstraintEnumerator.cs (1)
26
tables = (dataSet != null) ? dataSet.
Tables
.GetEnumerator() : null;
fx\src\data\System\Data\DataRelation.cs (2)
698
DataTable parent = destination.
Tables
[ParentTable.TableName, ParentTable.Namespace];
699
DataTable child = destination.
Tables
[ChildTable.TableName, ChildTable.Namespace];
fx\src\data\System\Data\DataRelationCollection.cs (4)
794
parents[j] = dataSet.
Tables
[rel.parentTableName].Columns[rel.parentColumnNames[j]];
796
parents[j] = dataSet.
Tables
[rel.parentTableName, rel.parentTableNamespace].Columns[rel.parentColumnNames[j]];
799
childs[j] = dataSet.
Tables
[rel.childTableName].Columns[rel.childColumnNames[j]];
801
childs[j] = dataSet.
Tables
[rel.childTableName, rel.childTableNamespace].Columns[rel.childColumnNames[j]];
fx\src\data\System\Data\DataSet.cs (95)
133
for (int i = 0; i <
Tables
.Count; i++) {
134
Tables
[i].RemotingFormat = value;
291
info.AddValue("DataSet.Tables.Count",
Tables
.Count);
294
for (int i = 0; i <
Tables
.Count; i++) {
297
bf.Serialize(memStream,
Tables
[i]);
303
for (int i = 0; i <
Tables
.Count; i++) {
304
Tables
[i].SerializeConstraints(info, context, i, true);
311
for (int i = 0; i <
Tables
.Count; i++) {
312
Tables
[i].SerializeExpressionColumns(info, context, i);
320
for (int i = 0; i <
Tables
.Count; i++) {
321
Tables
[i].SerializeTableData(info, context, i);
365
Tables
.Add(dt);
370
Tables
[i].DeserializeConstraints(info, context, /* table index */i, /* serialize all constraints */ true); //
378
Tables
[i].DeserializeExpressionColumns(info, context, i);
396
for (int i = 0; i <
Tables
.Count; i++) {
397
Tables
[i].DeserializeTableData(info, context, i);
452
parentInfo[0] =
Tables
.IndexOf(rel.ParentTable);
458
childInfo[0] =
Tables
.IndexOf(rel.ChildTable);
493
parentkeyColumns[i] =
Tables
[parentInfo[0]].Columns[parentInfo[i + 1]];
499
childkeyColumns[i] =
Tables
[childInfo[0]].Columns[childInfo[i + 1]];
546
foreach (DataTable table in
Tables
) {
617
foreach (DataTable table in
Tables
) {
654
DataTable conflicting =
Tables
[value, Namespace];
680
foreach (DataTable dt in
Tables
) {
686
if (
Tables
.Contains(dt.TableName, value, false, true))
753
for (int i = 0; i <
Tables
.Count; i++) {
754
if (
Tables
[i].HasErrors)
812
foreach (DataTable table in
Tables
) {
822
foreach (DataTable table in
Tables
) {
839
foreach (DataTable table in
Tables
) {
846
if (!
Tables
[i].ShouldSerializeLocale()) {
847
Tables
[i].SetLocaleValue(oldLocale, false, true);
888
for (int i = 0; i <
Tables
.Count; i++) {
889
if (
Tables
[i].Site != null) {
890
cont.Remove(
Tables
[i]);
953
/// Indicates whether <see cref='System.Data.DataSet.
Tables
'/> property should be persisted.
962
/// Resets the <see cref='System.Data.DataSet.
Tables
'/> property to its default state.
967
Tables
.Clear();
990
for (int i = 0; i <
Tables
.Count; i++)
991
Tables
[i].AcceptChanges();
1060
Tables
.FinishInitCollection();
1061
for (int i = 0; i <
Tables
.Count; i++) {
1062
Tables
[i].Columns.FinishInitCollection();
1065
for (int i = 0; i <
Tables
.Count; i++) {
1066
Tables
[i].Constraints.FinishInitConstraints();
1086
for (int i = 0; i <
Tables
.Count; i++)
1087
Tables
[i].Clear();
1107
if (ds.
Tables
.Count > 0) // Microsoft : To clean up all the schema in strong typed dataset.
1123
DataTableCollection tbls =
Tables
;
1128
ds.
Tables
.Add(dt);
1140
ds.
Tables
[i].Constraints.Add(constraints[j].Clone(ds));
1160
foreach (DataTable table in
Tables
)
1163
ds.
Tables
[table.TableName, table.Namespace].Columns[col.ColumnName].Expression = col.Expression;
1166
ds.
Tables
[i].tableNamespace = tbls[i].tableNamespace; // undo the hardcoding of the namespace
1189
foreach (DataTable table in this.
Tables
)
1191
DataTable destTable = dsNew.
Tables
[table.TableName, table.Namespace];
1209
for (int i = 0; i <
Tables
.Count; i++) {
1210
Int32 rowBytes = (
Tables
[i].TableName.Length + 4) << 2;
1211
DataTable table =
Tables
[i];
1266
TableChanges[] bitMatrix = new TableChanges[
Tables
.Count];
1268
bitMatrix[i] = new TableChanges(
Tables
[i].Rows.Count);
1284
DataTable table = this.
Tables
[i];
1285
DataTable destTable = dsNew.
Tables
[table.TableName, table.Namespace];
1310
DataRowCollection rows =
Tables
[tableIndex].Rows;
1341
int relatedTableIndex = this.
Tables
.IndexOf(relatedRow.Table);
1459
for (int i = 0; i <
Tables
.Count; i++) {
1460
DataTable table =
Tables
[i];
1914
if (
Tables
.Count == 0) {
2021
if (!fSchemaFound &&
Tables
.Count == 0) {
2043
if (!fSchemaFound &&
Tables
.Count == 0 && !topNode.HasChildNodes) { //We shoule not come add SC of root elemnt to topNode if we are not infering
2072
Tables
.Contains(root.Name, (root.NamespaceURI.Length == 0) ? null : root.NamespaceURI, false, true)) {
2087
if (!fSchemaFound &&
Tables
.Count == 0) {
2203
foreach (DataTable table in this.
Tables
)
2227
foreach (DataTable t in newDs.
Tables
) {
2277
foreach (DataTable t in newDs.
Tables
) {
2285
foreach (DataTable t in newDs.
Tables
) {
2958
for (int i = 0; i <
Tables
.Count; i++)
2960
DataTable table =
Tables
[i];
2965
for (int i = 0; i <
Tables
.Count; i++)
2967
DataTable table =
Tables
[i];
2989
for (int i = 0; i <
Tables
.Count; i++)
2990
Tables
[i].RejectChanges();
3008
for (int i = 0; i <
Tables
.Count; i++) {
3009
ConstraintCollection cons =
Tables
[i].Constraints;
3022
Tables
.Clear();
3042
for (int i = 0; i <
Tables
.Count; i++) {
3043
constraints =
Tables
[i].Constraints;
3072
for (int i = 0; i <
Tables
.Count; i++) {
3073
constraints =
Tables
[i].Constraints;
3427
DataTable tempDT = this.
Tables
[tables[i]];
3431
Tables
.Add(tempDT);
3439
if (
Tables
.Count == 0)
3442
DataTable[] dataTables = new DataTable[
Tables
.Count];
3443
for (int i = 0; i <
Tables
.Count; i++) {
3444
dataTables[i] =
Tables
[i];
fx\src\data\System\Data\DataTable.cs (35)
264
ds.
Tables
.Add(this);
275
dataSet.
Tables
.Remove(this);
300
Debug.Assert(ds.
Tables
.Count == 1, "There should be exactly 1 table here");
301
DataTable table = ds.
Tables
[0];
307
ds.
Tables
.Remove(ds.
Tables
[0]);
308
ds.
Tables
.Add(this);
310
ds.
Tables
.Remove(this);
512
parentInfo[0] = allConstraints ? this.DataSet.
Tables
.IndexOf(fk.RelatedTable) : 0;
518
childInfo[0] = allConstraints ? this.DataSet.
Tables
.IndexOf(fk.Table) : 0 ; //Since the constraint is on the current table, this is the child table.
578
DataTable parentTable = (allConstraints == false) ? this : this.DataSet.
Tables
[parentInfo[0]];
585
DataTable childTable = (allConstraints == false) ? this : this.DataSet.
Tables
[childInfo[0]];
1677
dataSet.
Tables
.RegisterName(value, this.Namespace);
1686
dataSet.
Tables
.RegisterName(value, this.Namespace);
1695
dataSet.
Tables
.UnregisterName(tableName);
1784
if (dataSet.
Tables
.Contains( this.TableName, realNamespace, true, true))
1808
if (dataSet.
Tables
.Contains( childTable.TableName, realNamespace, false, true))
2180
DataTable destinationTable = ds.
Tables
[sourceTable.TableName, sourceTable.Namespace];
2190
ds.
Tables
.Add(destinationTable);
4858
ds.
Tables
.Add(this);
4866
ds.
Tables
.Remove(this);
5003
ds.
Tables
.Add(this);
5011
ds.
Tables
.Remove(this);
5739
currentTable = ds.
Tables
[this.tableName, this.Namespace];
5742
int tableIndex = ds.
Tables
.InternalIndexOf(this.tableName);
5744
currentTable = ds.
Tables
[tableIndex];
5756
currentTable = ds.
Tables
[CurrentTableName, CurrentTableNamespace];
5813
dataset.
Tables
.Add(this);
5819
DataTable destinationTable = this.DataSet.
Tables
[tempTable.tableName, tempTable.Namespace];
5820
DataTable sourceTable = ds.
Tables
[tempTable.tableName, tempTable.Namespace];
5854
this.DataSet.
Tables
[tempTable.TableName, tempTable.Namespace].Columns[dc.ColumnName].Expression = dc.Expression;
6092
for (int tableIndex = 0; tableIndex < ds.
Tables
.Count; ++tableIndex)
6094
DataTable table = ds.
Tables
[tableIndex];
6114
for (int tableIndex = 0; tableIndex < _targetDS.
Tables
.Count; ++tableIndex)
6116
DataTable table = _targetDS.
Tables
[tableIndex];
fx\src\data\System\Data\DataViewManager.cs (4)
40
this.dataSet.
Tables
.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged);
67
this.dataSet.
Tables
.CollectionChanged -= new CollectionChangeEventHandler(TableCollectionChanged);
72
this.dataSet.
Tables
.CollectionChanged += new CollectionChangeEventHandler(TableCollectionChanged);
96
foreach (DataTable dt in dataSet.
Tables
) {
fx\src\data\System\Data\DataViewManagerListItemTypeDescriptor.cs (2)
131
int tableCount = dataSet.
Tables
.Count;
134
props[i] = new DataTablePropertyDescriptor(dataSet.
Tables
[i]);
fx\src\data\System\Data\DataViewSettingCollection.cs (4)
56
dt = ds.
Tables
[tableName];
65
dt = ds.
Tables
[index];
117
return (ds == null) ? 0 : ds.
Tables
.Count;
161
tableEnumerator = dvm.DataSet.
Tables
.GetEnumerator();
fx\src\data\System\Data\ForeignKeyConstraint.cs (6)
617
iDest = destination.
Tables
.IndexOf(Table.TableName);
620
iDest = destination.
Tables
.IndexOf(Table.TableName, Table.Namespace, false); // pass false for last param
626
DataTable table = destination.
Tables
[iDest];
628
iDest = destination.
Tables
.IndexOf(RelatedTable.TableName);
631
iDest = destination.
Tables
.IndexOf(RelatedTable.TableName, RelatedTable.Namespace, false);// pass false for last param
635
DataTable relatedTable = destination.
Tables
[iDest];
fx\src\data\System\Data\Merger.cs (19)
61
foreach(DataTable dt in dataSet.
Tables
) {
69
for (int i = 0; i < source.
Tables
.Count; i++) {
70
MergeTableData(source.
Tables
[i]); // since column expression might have dependency on relation, we do not set
85
foreach (DataTable sourceTable in source.
Tables
) {
88
targetTable = dataSet.
Tables
[sourceTable.TableName];
91
targetTable = dataSet.
Tables
[sourceTable.TableName, sourceTable.Namespace];// we know that target table wont be null since MissingSchemaAction is Add , we have already added it!
106
foreach(DataTable dt in dataSet.
Tables
)
142
dt = dataSet.
Tables
[src.TableName];
145
dt = dataSet.
Tables
[src.TableName, src.Namespace];
274
if (dataSet.
Tables
.Contains(table.TableName, true))
276
targetTable = dataSet.
Tables
[table.TableName];
279
targetTable = dataSet.
Tables
[table.TableName, table.Namespace];
291
dataSet.
Tables
.Add(targetTable);
387
for (int i = 0; i < source.
Tables
.Count; i ++) {
388
MergeConstraints(source.
Tables
[i]);
483
parent = dataSet.
Tables
[relation.ParentTable.TableName];
486
parent = dataSet.
Tables
[relation.ParentTable.TableName, relation.ParentTable.Namespace];
492
child = dataSet.
Tables
[relation.ChildTable.TableName];
495
child = dataSet.
Tables
[relation.ChildTable.TableName,relation.ChildTable.Namespace];
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (11)
64
DataTable metaDataCollectionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
73
DataTable restrictionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions];
127
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections]);
128
CollectionDataSet.
Tables
.Add(metaDataCollectionsTable);
131
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions]);
132
CollectionDataSet.
Tables
.Add(restrictionsTable);
543
DataTable dataSourceInformationTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataSourceInformation];
751
DataTable dataTypesTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataTypes];
931
DataTable reservedWordsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.ReservedWords];
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (12)
65
DataTable metaDataCollectionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
74
DataTable restrictionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions];
161
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections]);
162
CollectionDataSet.
Tables
.Add(metaDataCollectionsTable);
165
CollectionDataSet.
Tables
.Remove(CollectionDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions]);
166
CollectionDataSet.
Tables
.Add(restrictionsTable);
187
DataTable dataSourceInformationTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataSourceInformation];
337
DataTable dataTypesTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataTypes];
457
DataTable reservedWordsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.ReservedWords];
511
DataTable metaDataCollectionsTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (5)
85
sourceTable = _metaDataCollectionsDataSet.
Tables
[collectionName];
125
DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
245
DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
345
restrictionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.Restrictions];
383
DataTable metaDataCollectionsTable = _metaDataCollectionsDataSet.
Tables
[DbMetaDataCollectionNames.MetaDataCollections];
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (3)
470
table.DataSet.
Tables
.Remove(table);
606
_dataSet.
Tables
.Add(_dataTable);
908
_dataSet.
Tables
.Add(_dataTable);
fx\src\data\System\Data\SqlClient\sqlmetadatafactory.cs (1)
246
DataTable dataTypesTable = CollectionDataSet.
Tables
[DbMetaDataCollectionNames.DataTypes];
fx\src\data\System\Data\UniqueConstraint.cs (3)
260
iDest = destination.
Tables
.IndexOf(Table.TableName);
263
iDest = destination.
Tables
.IndexOf(Table.TableName, Table.Namespace, false);// pass false for last param to be backward compatable
268
DataTable table = destination.
Tables
[iDest];
fx\src\data\System\Data\XDRSchema.cs (5)
66
if (ds.
Tables
[_schemaName] == null)
545
table = dataSet.
Tables
.GetTable(typeName, _schemaUri);
560
_ds.
Tables
.Add(table);
625
table = dataSet.
Tables
.GetTable(typeName, _schemaUri);
642
_ds.
Tables
.Add(table);
fx\src\data\System\Data\XMLDiffLoader.cs (3)
181
table = ds.
Tables
.GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI);
258
return dataSet.
Tables
.GetTable(tableName, ns);
275
table = ds.
Tables
.GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI);
fx\src\data\System\Data\xmlsaver.cs (17)
294
foreach(DataTable dt in ds.
Tables
) {
308
for(int t = 0; t < ds.
Tables
.Count; t ++) {
309
DataTable table = ds.
Tables
[t];
364
foreach (DataTable dt in ds.
Tables
)
481
foreach(DataTable table in ds.
Tables
) {
980
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(rel.ParentKey.Table.TableName) ==-3))
983
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(rel.ChildKey.Table.TableName) ==-3))
1730
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(table.TableName) ==-3))
1802
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(table.TableName) ==-3))
1842
if ((_ds == null) || (_ds.
Tables
.InternalIndexOf(foreign.RelatedTable.TableName) == -3)) // if there is a conflicting name/namespace only
1977
for (int i = 0; i < ds.
Tables
.Count; i++) {
1978
_tables.Add(ds.
Tables
[i]);
2053
for (int i = 0; i < _ds.
Tables
.Count; ++i) {
2054
GenerateTable(_ds.
Tables
[i]);
2067
for (int i = 0; i < _ds.
Tables
.Count; ++i) {
2068
GenerateTableErrors(_ds.
Tables
[i]);
2330
foreach(DataTable table in ds.
Tables
) {
fx\src\data\System\Data\XMLSchema.cs (23)
359
DataTable table = _ds.
Tables
.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace);
420
parent = _ds.
Tables
.GetTableSmart(parentName,parentNs);
425
child = _ds.
Tables
.GetTableSmart(childName,childNs);
571
bool newDataSet = (ds.
Tables
.Count == 0);
602
foreach(DataTable dt in ds.
Tables
){
697
foreach (DataTable dt in ds.
Tables
) {
709
DataTable tmpTable = ds.
Tables
[ds.DataSetName, ds.Namespace];
715
if (this.FromInference && ds.
Tables
.Count == 0 && String.Compare(ds.DataSetName, "NewDataSet", StringComparison.Ordinal) == 0)
724
if (ds.
Tables
.Count > 0) { // if there is table, take first one's NS
725
ds.Namespace = ds.
Tables
[0].Namespace;
726
ds.Prefix = ds.
Tables
[0].Prefix;
1093
DataTable table = _ds.
Tables
.GetTableSmart(tableName,tableNs);
1192
DataTable table = _ds.
Tables
.GetTableSmart(tableName,tableNs);
1232
table = _ds.
Tables
.GetTable(typeName, _TableUri);
1291
if (!this.FromInference ||_ds.
Tables
.GetTable(typeName, _TableUri) == null) { // for inference; special case: add table if doesnot exists in collection
1292
_ds.
Tables
.Add(table);
1343
table = _ds.
Tables
.GetTable(XmlConvert.DecodeName(typeName), _TableUri);
1407
_ds.
Tables
.Add(table);
1462
if (_tableChild.DataSet.
Tables
.InternalIndexOf(_tableChild.TableName) < -1) { // if we have multiple tables with the same name
2216
int initialTableCount = _ds.
Tables
.Count; // just use for inference backward compatablity
2281
DataTable tempTable = _ds.
Tables
.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace);
2344
List<DataTable> _tableList = new List<DataTable>(_ds.
Tables
.Count);
2348
_ds.
Tables
.ReplaceFromInference(_tableList); // replace the list with the one in correct order: BackWard compatability for inference
fx\src\data\System\Data\XmlToDatasetMap.cs (4)
240
this.tableSchemaMap = new XmlNodeIdHashtable(dataSet.
Tables
.Count);
242
foreach(DataTable t in dataSet.
Tables
) {
258
this.tableSchemaMap = new XmlNodeIdHashtable(dataSet.
Tables
.Count);
274
foreach(DataTable t in dataSet.
Tables
) { // For each table
fx\src\data\System\NewXml\DataSetMappper.cs (1)
47
foreach( DataTable t in dataSet.
Tables
) {
fx\src\data\System\NewXml\XmlDataDocument.cs (12)
183
if ( dataSet.
Tables
.Count > 0 ) {
251
dataSet.
Tables
.CollectionChanging += new CollectionChangeEventHandler( this.OnDataSetTablesChanging );
259
if ( dataSet.
Tables
.Count > 0 ) {
260
foreach( DataTable t in dataSet.
Tables
) {
2743
if (ds == null ||ds.
Tables
.Count == 0) {
2747
retValue = new DataTable[ds.
Tables
.Count];
2748
ds.
Tables
.CopyTo(retValue, 0);
2754
retValue = new DataTable[ds.
Tables
.Count];
2757
foreach(DataTable dt in ds.
Tables
) {
2764
foreach(DataTable dt in ds.
Tables
) {
2781
ds.
Tables
.CopyTo(retValue, 0);
2819
foreach(DataTable dt in ds.
Tables
){
System.Data.Linq (2)
SqlClient\Reader\ObjectReaderCompiler.cs (2)
2530
ds.
Tables
.Add(bufferTable);
2817
ds.
Tables
.Add(tb);
System.Web (54)
Handlers\TraceHandler.cs (15)
166
table = CreateDetailsTable(data.
Tables
[SR.Trace_Request]);
170
table = CreateTraceTable(data.
Tables
[SR.Trace_Trace_Information]);
174
table = CreateControlTable(data.
Tables
[SR.Trace_Control_Tree]);
178
table = CreateTable(data.
Tables
[SR.Trace_Session_State], true /*encodeSpaces*/);
182
table = CreateTable(data.
Tables
[SR.Trace_Application_State], true /*encodeSpaces*/);
186
table = CreateTable(data.
Tables
[SR.Trace_Request_Cookies_Collection], true /*encodeSpaces*/);
190
table = CreateTable(data.
Tables
[SR.Trace_Response_Cookies_Collection], true /*encodeSpaces*/);
194
table = CreateTable(data.
Tables
[SR.Trace_Headers_Collection], true /*encodeSpaces*/);
198
table = CreateTable(data.
Tables
[SR.Trace_Form_Collection]);
202
table = CreateTable(data.
Tables
[SR.Trace_Querystring_Collection]);
206
table = CreateTable(data.
Tables
[SR.Trace_Server_Variables], true /*encodeSpaces*/);
288
AddCell(trow, (string) current.
Tables
[SR.Trace_Request].Rows[0][SR.Trace_Time_of_Request]);
289
AddCell(trow, HttpUtility.HtmlEncode((string) current.
Tables
[SR.Trace_Request].Rows[0][SR.Trace_Url]).Substring(vrootLen));
290
AddCell(trow, current.
Tables
[SR.Trace_Request].Rows[0][SR.Trace_Status_Code].ToString());
291
AddCell(trow, (string) current.
Tables
[SR.Trace_Request].Rows[0][SR.Trace_Request_Type]);
UI\TraceContext.cs (34)
153
DataRow row = _requestData.
Tables
[SR.Trace_Request].Rows[0];
174
_requestData.
Tables
[SR.Trace_Trace_Information].DefaultView.Sort = SR.Trace_Category;
176
_requestData.
Tables
[SR.Trace_Trace_Information].DefaultView.Sort = SR.Trace_From_First;
366
DataTable dt = _requestData.
Tables
[SR.Trace_Control_Tree];
380
DataTable dt = _requestData.
Tables
[SR.Trace_Control_Tree];
407
table = TraceHandler.CreateDetailsTable(_requestData.
Tables
[SR.Trace_Request]);
411
table = TraceHandler.CreateTraceTable(_requestData.
Tables
[SR.Trace_Trace_Information]);
415
table = TraceHandler.CreateControlTable(_requestData.
Tables
[SR.Trace_Control_Tree]);
419
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Session_State], true /*encodeSpaces*/);
423
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Application_State], true /*encodeSpaces*/);
427
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Request_Cookies_Collection], true /*encodeSpaces*/);
431
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Response_Cookies_Collection], true /*encodeSpaces*/);
435
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Headers_Collection], true /*encodeSpaces*/);
439
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Response_Headers_Collection], true /*encodeSpaces*/);
443
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Form_Collection]);
447
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Querystring_Collection]);
451
table = TraceHandler.CreateTable(_requestData.
Tables
[SR.Trace_Server_Variables], true /*encodeSpaces*/);
500
DataRow row = _requestData.
Tables
[SR.Trace_Request].Rows[0];
605
row = _requestData.
Tables
[SR.Trace_Request].Rows[0];
661
tab = tempset.
Tables
.Add(SR.Trace_Request);
672
tab = tempset.
Tables
.Add(SR.Trace_Control_Tree);
686
tab = tempset.
Tables
.Add(SR.Trace_Session_State);
692
tab = tempset.
Tables
.Add(SR.Trace_Application_State);
698
tab = tempset.
Tables
.Add(SR.Trace_Request_Cookies_Collection);
704
tab = tempset.
Tables
.Add(SR.Trace_Response_Cookies_Collection);
710
tab = tempset.
Tables
.Add(SR.Trace_Headers_Collection);
715
tab = tempset.
Tables
.Add(SR.Trace_Response_Headers_Collection);
720
tab = tempset.
Tables
.Add(SR.Trace_Form_Collection);
725
tab = tempset.
Tables
.Add(SR.Trace_Querystring_Collection);
730
tab = tempset.
Tables
.Add(SR.Trace_Trace_Information);
740
tab = tempset.
Tables
.Add(SR.Trace_Server_Variables);
748
return ds.
Tables
[table].NewRow();
752
ds.
Tables
[table].Rows.Add(row);
785
requestData.
Tables
[SR.Trace_Trace_Information].DefaultView.Sort = SR.Trace_Category;
UI\WebControls\FilteredDataSetHelper.cs (2)
59
if (dataSet.
Tables
.Count == 0) {
62
return dataSet.
Tables
[0];
UI\WebControls\SqlDataSourceView.cs (3)
935
return FilteredDataSetHelper.CreateFilteredDataView(dataSet.
Tables
[0], sortExpression, FilterExpression, parameterValues);
1064
DataTable dataTable = (dataSet.
Tables
.Count > 0 ? dataSet.
Tables
[0] : null);
System.Web.DataVisualization (7)
Common\DataManager\DataPoint.cs (2)
1143
if(dataSet.
Tables
.Count > 0)
1145
return dataSet.
Tables
[0].Rows.GetEnumerator();
Common\General\Chart.cs (4)
478
else if (dataSource is DataSet && ((DataSet)dataSource).
Tables
.Count > 0)
480
dataTable = ((DataSet)dataSource).
Tables
[0];
640
if (dataSource is DataSet && ((DataSet)dataSource).
Tables
.Count > 0)
642
dataSource = ((DataSet)dataSource).DefaultViewManager.CreateDataView(((DataSet)dataSource).
Tables
[0]);
Common\General\DataManipulator.cs (1)
1081
dataSet.
Tables
.Add(seriesTable);
System.Windows.Forms.DataVisualization (7)
Common\DataManager\DataPoint.cs (2)
1143
if(dataSet.
Tables
.Count > 0)
1145
return dataSet.
Tables
[0].Rows.GetEnumerator();
Common\General\Chart.cs (4)
478
else if (dataSource is DataSet && ((DataSet)dataSource).
Tables
.Count > 0)
480
dataTable = ((DataSet)dataSource).
Tables
[0];
640
if (dataSource is DataSet && ((DataSet)dataSource).
Tables
.Count > 0)
642
dataSource = ((DataSet)dataSource).DefaultViewManager.CreateDataView(((DataSet)dataSource).
Tables
[0]);
Common\General\DataManipulator.cs (1)
1081
dataSet.
Tables
.Add(seriesTable);