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