151 references to DataSet
System.Data.Common (150)
System\Data\Common\DataAdapter.cs (1)
439DataSet? commonDataSet = dataTables[0].DataSet;
System\Data\Constraint.cs (1)
78_dataSet = value ? Table!.DataSet : null;
System\Data\ConstraintCollection.cs (3)
797if (_table.DataSet == null) 809parents[j] = _table.DataSet.Tables[constr._parentTableName]!.Columns[constr._parentColumnNames[j]]!; 811parents[j] = _table.DataSet.Tables[constr._parentTableName, constr._parentTableNamespace]!.Columns[constr._parentColumnNames[j]]!;
System\Data\DataColumn.cs (3)
1101if ((table == null) || (!table.fInitInProgress && ((table.DataSet == null) || (!table.DataSet._fIsSchemaLoading && !table.DataSet._fInitInProgress))))
System\Data\DataColumnCollection.cs (2)
520if (_table.DataSet != null) 522for (ParentForeignKeyConstraintEnumerator en = new ParentForeignKeyConstraintEnumerator(_table.DataSet, _table); en.GetNext();)
System\Data\DataRelation.cs (10)
423if (string.Compare(ChildTable.TableName, ChildTable.DataSet!.DataSetName, true, ChildTable.DataSet.Locale) == 0) 517if (ChildTable.DataSet != null && (string.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0)) 543((ChildTable.NestedParentsCount > 0) && !(ChildTable.DataSet!.Relations.Contains(RelationName))))) 641if (_parentKey.Table.DataSet != _childKey.Table.DataSet) 696if ((parentColumns[i].Table!.DataSet == null) || (childColumns[i].Table!.DataSet == null))
System\Data\DataRelationCollection.cs (4)
543if (_table.DataSet == null) 552return _table.DataSet!; 764if (relation.ChildTable.DataSet != _dataSet || relation.ParentTable.DataSet != _dataSet)
System\Data\DataRow.cs (7)
206if (_table._fInLoadDiffgram || (_table.DataSet != null && _table.DataSet._fInLoadDiffgram)) 824if (relation.DataSet != _table.DataSet) 868if (relation.DataSet != _table.DataSet) 930if (relation.DataSet != _table.DataSet) 1323if (_table.DataSet != parentRow._table.DataSet)
System\Data\DataRowView.cs (2)
82else if (_dataView.Table.DataSet != null && _dataView.Table.DataSet.Relations.Contains(property))
System\Data\DataSet.cs (1)
3618if (dt.DataSet != this)
System\Data\DataTable.cs (47)
524Debug.Assert(DataSet != null); 560parentInfo[0] = allConstraints ? DataSet!.Tables.IndexOf(fk.RelatedTable) : 0; 567childInfo[0] = allConstraints ? DataSet!.Tables.IndexOf(fk.Table) : 0; //Since the constraint is on the current table, this is the child table. 634DataTable parentTable = (allConstraints == false) ? this : DataSet!.Tables[parentInfo[0]]; 642DataTable childTable = (allConstraints == false) ? this : DataSet!.Tables[childInfo[0]]; 968if (DataSet != null && !DataSet.ValidateCaseConstraint()) 1162if (DataSet != null && value != DataSet.RemotingFormat) 1226if (DataSet != null) 1434if ((null == DataSet) || DataSet.ValidateLocaleConstraint()) 1886if (DataSet != null) 1889return DataSet.Namespace; 4626if (DataSet != null) 4628_savedEnforceConstraints = DataSet.EnforceConstraints; 4629DataSet.EnforceConstraints = false; 4664if (DataSet != null) 4666DataSet.EnforceConstraints = _savedEnforceConstraints; 5416if (null == DataSet) 5584if (null == DataSet) 5699if (DataSet != null) 5701DataSet.EnforceConstraints = originalEnforceConstraint; 5760if (DataSet != null) 5762originalEnforceConstraint = DataSet.EnforceConstraints; 5763DataSet.EnforceConstraints = false; 5832if (DataSet != null) 5834DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 5901if (DataSet != null) 5904DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 6000if (DataSet != null) 6002originalEnforceConstraint = DataSet.EnforceConstraints; 6003DataSet.EnforceConstraints = false; 6102if (DataSet != null) 6105DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 6196if (DataSet != null) 6199DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 6554if (DataSet == null && _tableNamespace == null) 6572if (DataSet == null) 6592Debug.Assert(DataSet != null); 6594CloneHierarchy(currentTable, DataSet, null); 6598DataTable destinationTable = DataSet.Tables[tempTable._tableName, tempTable.Namespace]!; 6609ForeignKeyConstraint newFKC = (ForeignKeyConstraint)fkc.Clone(destinationTable.DataSet!)!; 6622if (!DataSet.Relations.Contains(rel.RelationName)) 6624DataSet.Relations.Add(rel.Clone(DataSet)); 6649DataSet.Tables[tempTable.TableName, tempTable.Namespace]!.Columns[dc.ColumnName]!.Expression = dc.Expression;
System\Data\DataTableCollection.cs (5)
283if (table.DataSet == _dataSet) 287if (table.DataSet != null) 341if (oldArray[oldCur].DataSet == _dataSet) 351if (newArray[newCur].DataSet != _dataSet) 393if (table.DataSet != _dataSet)
System\Data\DataTableReader.cs (2)
750if (table.DataSet != null) 752BaseCatalogName.DefaultValue = table.DataSet.DataSetName;
System\Data\DataView.cs (2)
1164DataSet? dataSet = _table.DataSet; 1188DataSet? dataSet = _table.DataSet;
System\Data\ForeignKeyConstraint.cs (19)
202if (Table!.DataSet == null || !Table.DataSet.EnforceConstraints) 260Debug.Assert(row.Table.DataSet != null); 278if (row.Table.DataSet.EnforceConstraints) 360Debug.Assert(row.Table.DataSet != null); 387if (row.RowState != DataRowState.Deleted && row.Table.DataSet.EnforceConstraints) 405Debug.Assert(Table?.DataSet != null && row.Table.DataSet != null); 413if (!Table.DataSet._fInReadXml && IsKeyNull(currentKey)) 423if (row.Table.DataSet.EnforceConstraints) 498Debug.Assert(Table?.DataSet != null); 499if (Table.DataSet.EnforceConstraints && Table.Rows.Count > 0) 507Debug.Assert(Table?.DataSet != null, $"Relation {ConstraintName} isn't part of a DataSet, so this check shouldn't be happening."); 508if (!Table.DataSet.EnforceConstraints) 520Debug.Assert(Table?.DataSet != null, $"ForeignKeyConstraint {ConstraintName} isn't part of a DataSet, so this check shouldn't be happening."); 568Table!.DataSet != null && Table.DataSet.EnforceConstraints && 631if (_parentKey.Table.DataSet != _childKey.Table.DataSet)
System\Data\Merger.cs (11)
128if (src.DataSet == _dataSet) return; //somebody is doing an 'automerge' 142if (src.DataSet == null || src.DataSet._namespaceURI != _dataSet._namespaceURI) 150if (_dataTable!.DataSet == null || src.DataSet == null || src.DataSet._namespaceURI != _dataTable.DataSet._namespaceURI) 184if (_dataTable.DataSet != null) 186_dataTable.DataSet.EnforceConstraints = false; 258if (row.Table.DataSet == _dataSet) 339targetTable = table.Clone(table.DataSet); // if we are here mainly we are called from DataSet.Merge at this point we don't set
System\Data\ProviderBase\SchemaMapping.cs (3)
556table?.DataSet?.Tables.Remove(table); 719if ((null != _dataSet) && (null == _dataTable.DataSet)) 1068if ((null != _dataSet) && null == _dataTable.DataSet)
System\Data\UniqueConstraint.cs (1)
195for (ParentForeignKeyConstraintEnumerator cs = new ParentForeignKeyConstraintEnumerator(Table!.DataSet, Table); cs.GetNext();)
System\Data\XDRSchema.cs (1)
635_tableChild.DataSet!.Relations.Add(relation);
System\Data\XmlDataLoader.cs (2)
1206if (column.Table!.DataSet != null && column.Table.DataSet._udtIsWrapped)
System\Data\XMLDiffLoader.cs (2)
396if (column.Table!.DataSet != null && column.Table.DataSet._udtIsWrapped)
System\Data\xmlsaver.cs (9)
568if (dt!.DataSet != null) 572_ds = dt.DataSet; 947_ds = dt.DataSet; 1021DataSet? dataSet = ds ?? dt!.DataSet; 1264(col.Table!.DataSet != null ? col.Table.DataSet.Namespace : col.Table.Namespace); 1737if (((table.DataSet == null) || (_ds != null && table.Namespace != _ds.Namespace)) && (_schFormat == SchemaFormat.Remoting)) 2706if (dt.DataSet == null) 2713_ds = dt.DataSet;
System\Data\XMLSchema.cs (8)
646if (dt.DataSet != null) 647LoadSchema(schemaSet, dt.DataSet); 1333int iExisting = fKey[0].Table!.DataSet!.Relations.InternalIndexOf(relName); 1336if (fKey[0].Table!.DataSet!.Relations[iExisting].RelationName != relName) 1344pKey[0].Table!.DataSet!.Relations.Add(relation); 1359relation = fKey[0].Table!.DataSet!.Relations[iExisting]; 1696if (_tableChild.DataSet!.Tables.InternalIndexOf(_tableChild.TableName) < -1) 1758_tableChild.DataSet!.Relations.Add(relation);
System\Xml\XmlDataDocument.cs (4)
2390Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2756Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2780Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2818Debug.Assert(row.Table.DataSet!.EnforceConstraints == false);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
621if (comp is DataTable && FindComponent(components, (comp as DataTable)?.DataSet))