Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Data.Common (1)
System\Data\DataRowCollection.cs (1)
36public override int Count => _list.Count;
196 references to Count
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
196if (0 <= index && index < table.Columns.Count)
System.Data.Common (192)
System\Data\Common\DataColumnMapping.cs (1)
94if ((0 <= index) && (index < columns.Count))
System\Data\Common\DataTableMapping.cs (1)
141if ((0 <= index) && (index < tables.Count))
System\Data\ConstraintCollection.cs (5)
386for (int i = 0; i < Table.ChildRelations.Count; i++) 396for (int i = 0; i < Table.ParentRelations.Count; i++) 427for (int i = 0; i < _table.ParentRelations.Count; i++) 431for (int i = 0; i < _table.ChildRelations.Count; i++) 596int count = Count;
System\Data\DataColumn.cs (4)
742for (int i = 0; i < _table.Constraints.Count; i++) 1563var parentRelations = new DataRelation[Table!.ParentRelations.Count]; 1649for (int i = 0; i < rels.Count; i++) 1661for (int i = 0; i < rels.Count; i++)
System\Data\DataColumnCollection.cs (6)
489for (int i = 0; i < _table.ParentRelations.Count; i++) 500for (int i = 0; i < _table.ChildRelations.Count; i++) 511for (int i = 0; i < _table.Constraints.Count; i++) 696int count = Count; 721for (int i = 0; i < Count; i++) 770if (0 > newPosition || newPosition > Count - 1)
System\Data\DataError.cs (1)
141int newCapacity = Math.Min(_count * 2, column.Table!.Columns.Count);
System\Data\DataRelationCollection.cs (2)
261int count = Count; 402int relationCount = Count;
System\Data\DataRow.cs (5)
425object[] values = new object[_columns.Count]; 440if (_columns.Count < value.Length) 1401for (int i = 0; i < _columns.Count; i++) 1413for (int i = 0; i < _columns.Count; i++) 1424for (int i = 0; i < _columns.Count; i++)
System\Data\DataRowComparer.cs (3)
155int count = leftRow.Table.Columns.Count; 156if (count != rightRow.Table.Columns.Count) 187if (row.Table.Columns.Count > 0)
System\Data\DataSet.cs (42)
127for (int i = 0; i < Tables.Count; i++) 342info.AddValue("DataSet.Tables.Count", Tables.Count); 345for (int i = 0; i < Tables.Count; i++) 359for (int i = 0; i < Tables.Count; i++) 368for (int i = 0; i < Tables.Count; i++) 380for (int i = 0; i < Tables.Count; i++) 480for (int i = 0; i < Tables.Count; i++) 846for (int i = 0; i < Tables.Count; i++) 994for (int i = 0; i < Tables.Count; i++) 1055for (int i = 0; i < Tables.Count; i++) 1086for (int i = 0; i < Tables.Count; i++) 1091for (int i = 0; i < Tables.Count; i++) 1113for (int i = 0; i < Tables.Count; i++) 1143if (ds.Tables.Count > 0) // To clean up all the schema in strong typed dataset. 1161for (int i = 0; i < tbls.Count; i++) 1170for (int i = 0; i < tbls.Count; i++) 1173for (int j = 0; j < constraints.Count; j++) 1192for (int i = 0; i < rels.Count; i++) 1220for (int i = 0; i < tbls.Count; i++) 1269for (int i = 0; i < Tables.Count; i++) 1273for (int j = 0; j < table.Columns.Count; j++) 1328TableChanges[] bitMatrix = new TableChanges[Tables.Count]; 1413int relationCount = relations.Count; 1539for (int i = 0; i < Tables.Count; i++) 2060if (Tables.Count == 0) 2187if (!fSchemaFound && Tables.Count == 0) 2214if (!fSchemaFound && Tables.Count == 0 && !topNode.HasChildNodes) 2271if (!fSchemaFound && Tables.Count == 0) 3178for (int i = 0; i < Tables.Count; i++) 3187for (int i = 0; i < Tables.Count; i++) 3214for (int i = 0; i < Tables.Count; i++) 3235for (int i = 0; i < Tables.Count; i++) 3238for (int j = 0; j < cons.Count;) 3267for (int i = 0; i < Relations.Count; i++) 3278for (int i = 0; i < Tables.Count; i++) 3281for (int j = 0; j < constraints.Count; j++) 3307for (int i = 0; i < Relations.Count; i++) 3318for (int i = 0; i < Tables.Count; i++) 3321for (int j = 0; j < constraints.Count; j++) 3599if (Tables.Count == 0) 3604var dataTables = new DataTable[Tables.Count]; 3605for (int i = 0; i < Tables.Count; i++)
System\Data\DataTable.cs (43)
324Debug.Assert(ds.Tables.Count == 1, "There should be exactly 1 table here"); 363info.AddValue("DataTable.Columns.Count", Columns.Count); 377for (int i = 0; i < Columns.Count; i++) 450Debug.Assert(Columns.Count == 0, "There is column in Table"); 524for (int i = 0; i < Constraints.Count; i++) 660int colCount = Columns.Count; 671int colCount = Columns.Count; 687int colCount = Columns.Count; 797for (int i = 0; i < Columns.Count; i++) 2330if (clone.Columns.Count > 0) // To clean up all the schema in strong typed dataset. 2365if ((destinationTable != null && destinationTable.Columns.Count > 0)) 2421for (int i = 0; i < clmns.Count; i++) 2429for (int i = 0; i < clmns.Count; i++) 2449for (int j = 0; j < Constraints.Count; j++) 2479for (int j = 0; j < Constraints.Count; j++) 2706for (int i = 0; i < Columns.Count; i++) 2802int columnCount = _columnCollection.Count; 3384int colCount = _columnCollection.Count; // Perf: use the readonly columnCollection field directly 3420int count = _columnCollection.Count; 4032int count = dr.Count; 4040count = dr.Count; 4175int columnCount = _columnCollection.Count; 4185int constraintCount = _constraintCollection.Count; 4352for (int j = 0; j < ParentRelations.Count; j++) 4362for (int j = 0; j < ChildRelations.Count; j++) 4855for (int i = Columns.Count - 1; i >= position; i--) 4903int columnsCount = Columns.Count; 4904int relationsCount = ChildRelations.Count; 5047for (int count = values.Length; count < _columnCollection.Count; count++) 5746if (Columns.Count == 0) 5761if (Columns.Count == 0) 5890if (!fSchemaFound && Columns.Count == 0) 5909if (!fSchemaFound && Columns.Count == 0) 5987if (Columns.Count == 0) 6013if (Columns.Count == 0) 6140if (Columns.Count == 0) 6190if (Columns.Count == 0) 6217if (Columns.Count == 0) 6507if (Columns.Count == 0) 6831for (int tableIndex = 0; tableIndex < ds.Tables.Count; ++tableIndex) 6853for (int tableIndex = 0; tableIndex < _targetDS.Tables.Count; ++tableIndex) 7179for (int j = 0; j < ParentRelations.Count; j++) 7211for (int j = 0; j < ChildRelations.Count; j++)
System\Data\DataTableCollection.cs (2)
405if (table.ChildRelations.Count != 0 || table.ParentRelations.Count != 0)
System\Data\DataTableReader.cs (1)
288return _currentDataTable.Columns.Count;
System\Data\DataView.cs (1)
1695columnNames = new string[Table!.Columns.Count];
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
120int tableCount = dataSet.Tables.Count;
System\Data\DataViewSettingCollection.cs (1)
135return (ds == null) ? 0 : ds.Tables.Count;
System\Data\Filter\AggregateNode.cs (2)
89if (relations.Count > 1) 93if (relations.Count == 1)
System\Data\Filter\LookupNode.cs (1)
42if (relations.Count > 1)
System\Data\ForeignKeyConstraint.cs (1)
909for (int i = 0; i < rels.Count; i++)
System\Data\Merger.cs (7)
67for (int i = 0; i < source.Tables.Count; i++) 79for (int i = 0; i < source.Relations.Count; i++) 354int oldCount = targetTable.Columns.Count; 355for (int i = 0; i < table.Columns.Count; i++) 396for (int i = oldCount; i < targetTable.Columns.Count; i++) 461for (int i = 0; i < source.Tables.Count; i++) 472for (int i = 0; i < table.Constraints.Count; i++)
System\Data\ProviderBase\SchemaMapping.cs (5)
583bool alwaysCreateColumns = ((_dataTable.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough)); 781|| (0 == _dataTable.Columns.Count)); 1089int constraintCount = constraints.Count; 1227int mappingCount = columnCollection.Count; 1250_mappedDataValues = new object[columnCollection.Count];
System\Data\RecordManager.cs (4)
69for (int i = 0; i < _table.Columns.Count; i++) 127int count = _table._columnCollection.Count; 154int count = _table._columnCollection.Count; 225int count = _table.Columns.Count;
System\Data\Select.cs (1)
299_candidateColumns = new ColumnInfo[_table.Columns.Count];
System\Data\Selection.cs (1)
101IndexField[] fields = new IndexField[columns.Count];
System\Data\XDRSchema.cs (1)
613for (int j = 0; j < childRelations.Count; j++)
System\Data\XmlDataLoader.cs (3)
203int cCols = columns.Count; 710object[] foundColumns = new object[collection.Count]; 880object[] foundColumns = new object[collection.Count];
System\Data\xmlsaver.cs (19)
350for (int t = 0; t < ds.Tables.Count; t++) 357for (int c = 0; c < table.Columns.Count; c++) 366for (int r = 0; r < ds.Relations.Count; r++) 510if (table.ParentRelations.Count == 0) 515for (int j = 0; j < table.ParentRelations.Count; j++) 766rels = new DataRelation[ds.Relations.Count]; 767for (int i = 0; i < ds.Relations.Count; i++) 1786int cCount = columns.Count; 1797for (int j = 0; j < childRelations.Count; j++) 1915for (int j = 0; j < childRelations.Count; j++) 1986for (int i = 0; i < constraints.Count; i++) 2271for (int i = 0; i < ds.Tables.Count; i++) 2363for (int i = 0; i < _ds!.Tables.Count; ++i) 2381for (int i = 0; i < _ds!.Tables.Count; ++i) 2418int colCount = table.Columns.Count; 2493int colCount = table.Columns.Count; 2717if (table.ParentRelations.Count == 0) 2722for (int j = 0; j < table.ParentRelations.Count; j++) 2764int colCount = row.Table.Columns.Count;
System\Data\XMLSchema.cs (14)
103for (int i = 0; i <= table.Columns.Count; i++) 443for (int i = 0; i < rels.Count; ++i) 657bool newDataSet = (ds.Tables.Count == 0); 813for (int j = 0; j < childRelations.Count; j++) 832if (FromInference && ds.Tables.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal)) 842if (ds.Tables.Count > 0) 950for (int j = 0; j < childRelations.Count; j++) 1478if (!FromInference || (isSimpleContent && table.Columns.Count == 0)) 1634for (int i = 0; i < table!.Columns.Count; i++) 1706for (int j = 0; j < childRelations.Count; j++) 2066if (ordinal > -1 && ordinal < table.Columns.Count) 2167if (ordinal > -1 && ordinal < table.Columns.Count) 2522if (ordinal > -1 && ordinal < table.Columns.Count) 2706List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count);
System\Data\XmlToDatasetMap.cs (3)
95ColumnsSchemaMap = new XmlNodeIdHashtable(tableSchema.Columns.Count); 264_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count); 287_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count);
System\Xml\DataPointer.cs (1)
125int cColumns = columns.Count;
System\Xml\DataSetMappper.cs (1)
377for (; iColumn < columns.Count; iColumn++)
System\Xml\XmlDataDocument.cs (7)
199if (_dataSet.Tables.Count > 0) 291if (_dataSet.Tables.Count > 0) 840int cCols = columns.Count; 3109if (ds == null || ds.Tables.Count == 0) 3115retValue = new DataTable[ds.Tables.Count]; 3123retValue = new DataTable[ds!.Tables.Count]; 3128if (dt.ParentRelations.Count == 0)
System\Xml\XPathNodePointer.cs (2)
547int cColumns = columns.Count; 567int iColumn = (col != null) ? col.Ordinal - 1 : columns.Count - 1;
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
80for (int i = 0; i < destinationColumns.Count; i++) 176object[] values = new object[resultTable.Columns.Count];
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
1074values = new object[resultTable.Columns.Count];