Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Data (1)
fx\src\data\System\Data\DataRowCollection.cs (1)
41public override int Count {
244 references to Count
System.Data (223)
fx\src\data\System\Data\CodeGen\datacache.cs (19)
225for (int i = 0; i < relations.Count; i++) { 282if (relation.ChildTable.Columns.Count == 1) { 323for (int i = 0; i < table.Columns.Count; i++) { 399for (int i = 0; i < table.Columns.Count; i++) { 436for (int i = 0; i < table.Columns.Count; i++) { 465index = new DataColumn[table.Columns.Count]; 493for (int j = 0; j < table.Constraints.Count; j++) { 568for (int i = 0; i < table.Columns.Count; i++) { 594for (int i = 0; i < table.Constraints.Count; i++) { 617for (int i = 0; i < table.Columns.Count; i++) { 917for (int i = 0; i < ChildRelations.Count; i++) { 931for (int i = 0; i < ParentRelations.Count; i++) { 1021for (int i = 0; i < dataSet.Tables.Count; i++) { 1025for (int i = 0; i < dataSet.Relations.Count; i++) { 1068for (int i = 0; i < dataSet.Tables.Count; i++) { 1143for (int i = 0; i < dataSet.Tables.Count; i++) { 1227for (int i = 0; i < dataSet.Tables.Count; i++) { 1357for (int i = 0; i < dataSet.Tables.Count; i++) { 1393for (int i = 0; i < table.Columns.Count; i++) {
fx\src\data\System\Data\Common\DataColumnMapping.cs (1)
106if ((0 <= index) && (index < columns.Count)) {
fx\src\data\System\Data\Common\DataTableMapping.cs (1)
148if ((0 <= index) && (index < tables.Count)) {
fx\src\data\System\Data\ConstraintCollection.cs (5)
351for (int i = 0; i < Table.ChildRelations.Count; i++) { 359for (int i = 0; i < Table.ParentRelations.Count; i++) { 387for (int i = 0; i < table.ParentRelations.Count; i++) { 390for (int i = 0; i < table.ChildRelations.Count; i++) { 533int count = Count;
fx\src\data\System\Data\DataColumn.cs (4)
757for (int i = 0; i < table.Constraints.Count; i++) { 1520DataRelation[] parentRelations = new DataRelation[Table.ParentRelations.Count]; 1605for (int i = 0; i < rels.Count; i++) { 1614for (int i = 0; i < rels.Count; i++) {
fx\src\data\System\Data\DataColumnCollection.cs (6)
448for (int i = 0; i < table.ParentRelations.Count; i++) { 456for (int i = 0; i < table.ChildRelations.Count; i++) { 464for (int i = 0; i < table.Constraints.Count; i++) { 634int count = Count; 654for (int i = 0; i < Count; i++) { 696if (0 > newPosition || newPosition > Count -1) {
fx\src\data\System\Data\DataError.cs (1)
130int newCapacity = Math.Min(count*2, column.Table.Columns.Count);
fx\src\data\System\Data\DataRelationCollection.cs (2)
249int count = Count; 374int relationCount = Count;
fx\src\data\System\Data\DataRow.cs (5)
390object[] values = new object[_columns.Count]; 402if (_columns.Count < value.Length) { 1273for (int i = 0; i < _columns.Count; i++) { 1282for (int i = 0; i < _columns.Count; i++) { 1290for (int i = 0; i < _columns.Count; i++) {
fx\src\data\System\Data\DataSet.cs (42)
133for (int i = 0; i < Tables.Count; i++) { 291info.AddValue("DataSet.Tables.Count", Tables.Count); 294for (int i = 0; i < Tables.Count; i++) { 303for (int i = 0; i < Tables.Count; i++) { 311for (int i = 0; i < Tables.Count; i++) { 320for (int i = 0; i < Tables.Count; i++) { 396for (int i = 0; i < Tables.Count; i++) { 753for (int i = 0; i < Tables.Count; i++) { 888for (int i = 0; i < Tables.Count; i++) { 990for (int i = 0; i < Tables.Count; i++) 1061for (int i = 0; i < Tables.Count; i++) { 1065for (int i = 0; i < Tables.Count; i++) { 1086for (int i = 0; i < Tables.Count; i++) 1107if (ds.Tables.Count > 0) // Microsoft : To clean up all the schema in strong typed dataset. 1124for (int i = 0; i < tbls.Count; i++) { 1132for (int i = 0; i < tbls.Count; i++) { 1134for (int j = 0; j < constraints.Count; j++) { 1146for (int i = 0; i < rels.Count; i++) { 1165for (int i = 0; i < tbls.Count; i++) { 1209for (int i = 0; i < Tables.Count; i++) { 1212for (int j = 0; j < table.Columns.Count; j++) { 1266TableChanges[] bitMatrix = new TableChanges[Tables.Count]; 1336int relationCount = relations.Count; 1459for (int i = 0; i < Tables.Count; i++) { 1914if (Tables.Count == 0) { 2021if (!fSchemaFound && Tables.Count == 0) { 2043if (!fSchemaFound && Tables.Count == 0 && !topNode.HasChildNodes) { //We shoule not come add SC of root elemnt to topNode if we are not infering 2087if (!fSchemaFound && Tables.Count == 0) { 2958for (int i = 0; i < Tables.Count; i++) 2965for (int i = 0; i < Tables.Count; i++) 2989for (int i = 0; i < Tables.Count; i++) 3008for (int i = 0; i < Tables.Count; i++) { 3010for (int j = 0; j < cons.Count; ) { 3034for (int i = 0; i < Relations.Count; i++) { 3042for (int i = 0; i < Tables.Count; i++) { 3044for (int j = 0; j < constraints.Count; j++) { 3064for (int i = 0; i < Relations.Count; i++) { 3072for (int i = 0; i < Tables.Count; i++) { 3074for (int j = 0; j < constraints.Count; j++) { 3439if (Tables.Count == 0) 3442DataTable[] dataTables = new DataTable[Tables.Count]; 3443for (int i = 0; i < Tables.Count; i++) {
fx\src\data\System\Data\DataTable.cs (44)
300Debug.Assert(ds.Tables.Count == 1, "There should be exactly 1 table here"); 338info.AddValue("DataTable.Columns.Count", Columns.Count); 349for (int i = 0; i < Columns.Count; i++) { 420Debug.Assert(Columns.Count == 0, "There is column in Table"); 487for (int i = 0; i < Constraints.Count; i++) { 606int colCount = Columns.Count; 614int colCount = Columns.Count; 626int colCount = Columns.Count; 726for (int i = 0; i < Columns.Count; i++) { 1135for (int i = 0; i < cols.Count; i++) 2153if (clone.Columns.Count > 0) // Microsoft : To clean up all the schema in strong typed dataset. 2182if ((destinationTable != null && destinationTable.Columns.Count > 0)) { 2236for (int i = 0; i < clmns.Count; i++) { 2242for (int i = 0; i < clmns.Count; i++) { 2259for (int j = 0; j < Constraints.Count; j++) { 2284for (int j = 0; j < Constraints.Count; j++) { 2499for (int i = 0; i < Columns.Count; i++) { 2586int columnCount = columnCollection.Count; 3081int colCount = columnCollection.Count; // Perf: use the readonly columnCollection field directly 3112int count = columnCollection.Count; 3640int count = dr.Count; 3647count = dr.Count; 3763int columnCount = columnCollection.Count; 3771int constraintCount = constraintCollection.Count; 3910for (int j = 0; j < ParentRelations.Count; j++) { 3918for (int j = 0; j < ChildRelations.Count; j++) { 4353for(int i = Columns.Count -1; i >= position; i--) { 4396int columnsCount = Columns.Count; 4397int relationsCount = ChildRelations.Count; 4523for(int count = values.Length; count < columnCollection.Count ; count++) { 5155if (Columns.Count == 0) { 5166if (Columns.Count == 0) { 5274if (!fSchemaFound && Columns.Count == 0) { 5296if (!fSchemaFound && Columns.Count == 0) { 5358if (Columns.Count == 0) { 5376if (Columns.Count == 0) { 5475if (Columns.Count == 0) { 5514if (Columns.Count == 0) { 5540if (Columns.Count == 0) { 5779if (this.Columns.Count == 0) { 6092for (int tableIndex = 0; tableIndex < ds.Tables.Count; ++tableIndex) 6114for (int tableIndex = 0; tableIndex < _targetDS.Tables.Count; ++tableIndex) 6375for (int j = 0; j < ParentRelations.Count; j++) { 6392for (int j = 0; j < ChildRelations.Count; j++) {
fx\src\data\System\Data\DataTableCollection.cs (2)
389if (table.ChildRelations.Count != 0 || table.ParentRelations.Count != 0) {
fx\src\data\System\Data\DataTableReader.cs (1)
277return currentDataTable.Columns.Count;
fx\src\data\System\Data\DataView.cs (1)
1694columnNames = new string[Table.Columns.Count];
fx\src\data\System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
131int tableCount = dataSet.Tables.Count;
fx\src\data\System\Data\DataViewSettingCollection.cs (1)
117return (ds == null) ? 0 : ds.Tables.Count;
fx\src\data\System\Data\Filter\AggregateNode.cs (2)
89if (relations.Count > 1) { 92if (relations.Count == 1) {
fx\src\data\System\Data\Filter\LookupNode.cs (1)
44if (relations.Count > 1) {
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
812for (int i = 0; i < rels.Count; i++) {
fx\src\data\System\Data\Merger.cs (7)
69for (int i = 0; i < source.Tables.Count; i++) { 79for (int i = 0; i < source.Relations.Count; i++) { 300int oldCount = targetTable.Columns.Count; 301for (int i = 0; i < table.Columns.Count; i++) { 333for (int i = oldCount; i < targetTable.Columns.Count; i++) { 387for (int i = 0; i < source.Tables.Count; i ++) { 394for (int i = 0; i < table.Constraints.Count; i++) {
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (1)
1027values = new object[resultTable.Columns.Count];
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
410int count = columns.Count;
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
100for(int i = 0; i < destinationColumns.Count; i++) { 192object[] values = new object[resultTable.Columns.Count];
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (5)
492bool alwaysCreateColumns = ((_dataTable.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough)); 654|| (0 == _dataTable.Columns.Count)); // MDAC 67033 928int constraintCount = constraints.Count; 1051int mappingCount = columnCollection.Count; 1070_mappedDataValues = new object[columnCollection.Count];
fx\src\data\System\Data\RecordManager.cs (4)
69for (int i = 0; i < table.Columns.Count; i++) { 117int count = table.columnCollection.Count; 139int count = table.columnCollection.Count; 200int count = table.Columns.Count;
fx\src\data\System\Data\Select.cs (1)
252candidateColumns = new ColumnInfo[this.table.Columns.Count];
fx\src\data\System\Data\Selection.cs (1)
105IndexField[] fields = new IndexField[columns.Count];
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
1548WriteRowSourceToServerAsync(table.Columns.Count, CancellationToken.None); //It returns null since _isAsyncBulkCopy = false; 1585WriteRowSourceToServerAsync(table.Columns.Count, CancellationToken.None); //It returns null since _isAsyncBulkCopy = false; 1634resultTask = WriteRowSourceToServerAsync(table.Columns.Count, cancellationToken); //It returns Task since _isAsyncBulkCopy = true; 1737resultTask = WriteRowSourceToServerAsync(table.Columns.Count, cancellationToken); //It returns Task since _isAsyncBulkCopy = true;
fx\src\data\System\Data\SqlClient\SqlParameter.cs (4)
1097if (dt.Columns.Count <= 0) { 1100fields = new List<MSS.SmiExtendedMetaData>(dt.Columns.Count); 1101bool[] keyCols = new bool[dt.Columns.Count]; 1113for(int i=0; i<dt.Columns.Count; i++) {
fx\src\data\System\Data\XDRSchema.cs (1)
589for (int j = 0; j < childRelations.Count; j++) {
fx\src\data\System\Data\XmlDataLoader.cs (4)
189int cCols = columns.Count; 507foundColumns = new bool[topMostRow.Table.Columns.Count]; 682object[] foundColumns = new object[collection.Count]; 835object[] foundColumns = new object[collection.Count];
fx\src\data\System\Data\xmlsaver.cs (19)
308for(int t = 0; t < ds.Tables.Count; t ++) { 313for(int c = 0; c < table.Columns.Count; c ++) { 320for(int r = 0; r < ds.Relations.Count; r ++) { 438if (table.ParentRelations.Count == 0) 442for (int j = 0; j < table.ParentRelations.Count; j++) { 656rels = new DataRelation[ds.Relations.Count]; 657for (int i = 0 ; i < ds.Relations.Count ; i++) { 1528int cCount = columns.Count; 1537for (int j = 0; j < childRelations.Count; j++) { 1647for (int j = 0; j < childRelations.Count; j++) { 1713for (int i = 0; i < constraints.Count; i++) { 1977for (int i = 0; i < ds.Tables.Count; i++) { 2053for (int i = 0; i < _ds.Tables.Count; ++i) { 2067for (int i = 0; i < _ds.Tables.Count; ++i) { 2098int colCount = table.Columns.Count; 2165int colCount = table.Columns.Count; 2367if (table.ParentRelations.Count == 0) 2371for (int j = 0; j < table.ParentRelations.Count; j++) { 2403int colCount = row.Table.Columns.Count;
fx\src\data\System\Data\XMLSchema.cs (15)
99for (int i=0; i <= table.Columns.Count; i++) { 384for (int i = 0; i < rels.Count; ++i) { 571bool newDataSet = (ds.Tables.Count == 0); 700for (int j = 0; j < childRelations.Count; j++) { // we need to do the same thing for nested child tables as they 715if (this.FromInference && ds.Tables.Count == 0 && String.Compare(ds.DataSetName, "NewDataSet", StringComparison.Ordinal) == 0) 724if (ds.Tables.Count > 0) { // if there is table, take first one's NS 813for (int j = 0; j < childRelations.Count; j++) { 1273if (!FromInference ||(isSimpleContent && table.Columns.Count == 0 )) {// for inference backward compatability 1415for (int i=0; i < table.Columns.Count ; i++) 1477for (int j = 0; j < childRelations.Count; j++) { 1792if(ordinal>-1 && ordinal<table.Columns.Count) 1883if(ordinal>-1 && ordinal<table.Columns.Count) 2189if(ordinal>-1 && ordinal<table.Columns.Count) 2216int initialTableCount = _ds.Tables.Count; // just use for inference backward compatablity 2344List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count);
fx\src\data\System\Data\XmlToDatasetMap.cs (3)
85this.ColumnsSchemaMap = new XmlNodeIdHashtable(tableSchema.Columns.Count); 240this.tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count); 258this.tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count);
fx\src\data\System\NewXml\DataPointer.cs (1)
120int cColumns = columns.Count;
fx\src\data\System\NewXml\DataSetMappper.cs (1)
338for ( ; iColumn < columns.Count; iColumn++ ) {
fx\src\data\System\NewXml\XmlDataDocument.cs (6)
183if ( dataSet.Tables.Count > 0 ) { 259if ( dataSet.Tables.Count > 0 ) { 2743if (ds == null ||ds.Tables.Count == 0) { 2747retValue = new DataTable[ds.Tables.Count]; 2754retValue = new DataTable[ds.Tables.Count]; 2758if (dt.ParentRelations.Count == 0) {
fx\src\data\System\NewXml\XPathNodePointer.cs (3)
515int cColumns = columns.Count; 534int iColumn = (col != null) ? col.Ordinal - 1 : columns.Count - 1; 535int cColumns = columns.Count;
System.Data.DataSetExtensions (3)
System\Data\DataRowComparer.cs (3)
172int count = leftRow.Table.Columns.Count; 173if (count != rightRow.Table.Columns.Count) 208if (row.Table.Columns.Count > 0)
System.Data.Entity.Design (1)
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
174object[] values = new object[table.Columns.Count];
System.Web (2)
UI\WebControls\FilteredDataSetHelper.cs (1)
59if (dataSet.Tables.Count == 0) {
UI\WebControls\SqlDataSourceView.cs (1)
1064DataTable dataTable = (dataSet.Tables.Count > 0 ? dataSet.Tables[0] : null);
System.Web.DataVisualization (7)
Common\DataManager\DataPoint.cs (5)
1143 if(dataSet.Tables.Count > 0) 1182if (!failed && columnIndex < dataRow.Table.Columns.Count && columnIndex >= 0) 1219if (!failed && columnIndex < dataRowView.DataView.Table.Columns.Count && columnIndex >= 0) 1409 else if(((DataRow)enumerator.Current).Table.Columns.Count > 0) 1450 else if(((DataRowView)enumerator.Current).DataView.Table.Columns.Count > 0)
Common\General\Chart.cs (2)
478else if (dataSource is DataSet && ((DataSet)dataSource).Tables.Count > 0) 640if (dataSource is DataSet && ((DataSet)dataSource).Tables.Count > 0)
System.Web.Mobile (1)
UI\MobileControls\Design\ListDesigner.cs (1)
337Debug.Assert(_dummyDataTable != null && _dummyDataTable.Columns.Count > 1);
System.Windows.Forms.DataVisualization (7)
Common\DataManager\DataPoint.cs (5)
1143 if(dataSet.Tables.Count > 0) 1182if (!failed && columnIndex < dataRow.Table.Columns.Count && columnIndex >= 0) 1219if (!failed && columnIndex < dataRowView.DataView.Table.Columns.Count && columnIndex >= 0) 1409 else if(((DataRow)enumerator.Current).Table.Columns.Count > 0) 1450 else if(((DataRowView)enumerator.Current).DataView.Table.Columns.Count > 0)
Common\General\Chart.cs (2)
478else if (dataSource is DataSet && ((DataSet)dataSource).Tables.Count > 0) 640if (dataSource is DataSet && ((DataSet)dataSource).Tables.Count > 0)