152 references to DataSet
System.Data (152)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
142className = (string) table.DataSet.ExtendedProperties["typedBaseClass"]; 173if ((table.DataSet.Tables.InternalIndexOf(table.TableName) == -3) && !conflictingTables.Contains(table.TableName)) {
fx\src\data\System\Data\Common\DataAdapter.cs (1)
471DataSet commonDataSet = dataTables[0].DataSet;
fx\src\data\System\Data\Constraint.cs (1)
88dataSet = Table.DataSet;
fx\src\data\System\Data\ConstraintCollection.cs (3)
709if (table.DataSet == null) { 719parents[j] = table.DataSet.Tables[constr.parentTableName].Columns[constr.parentColumnNames[j]]; 721parents[j] = table.DataSet.Tables[constr.parentTableName, constr.parentTableNamespace].Columns[constr.parentColumnNames[j]];
fx\src\data\System\Data\DataColumn.cs (3)
1126(!table.fInitInProgress && ((table.DataSet == null) || (!table.DataSet.fIsSchemaLoading && !table.DataSet.fInitInProgress)))) {
fx\src\data\System\Data\DataColumnCollection.cs (3)
342if (table.DataSet != null) { 471if (table.DataSet != null) { 472for (ParentForeignKeyConstraintEnumerator en = new ParentForeignKeyConstraintEnumerator(table.DataSet, table); en.GetNext();) {
fx\src\data\System\Data\DataRelation.cs (10)
428if (String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0) 507if (ChildTable.DataSet != null && ( String.Compare(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0) ) 526((ChildTable.NestedParentsCount > 0) && ! (ChildTable.DataSet.Relations.Contains(this.RelationName))))) { 632if (parentKey.Table.DataSet != childKey.Table.DataSet) { 680if ((parentColumns[i].Table.DataSet == null) || (childColumns[i].Table.DataSet == null))
fx\src\data\System\Data\DataRelationCollection.cs (4)
508if (table.DataSet == null) { 515return table.DataSet; 688if (relation.ChildTable.DataSet != dataSet || relation.ParentTable.DataSet != dataSet)
fx\src\data\System\Data\DataRow.cs (7)
212if (_table.fInLoadDiffgram || (_table.DataSet != null && _table.DataSet.fInLoadDiffgram)) 766if (relation.DataSet != _table.DataSet) 807if (relation.DataSet != _table.DataSet) 870if (relation.DataSet != _table.DataSet) 1210if (_table.DataSet != parentRow._table.DataSet)
fx\src\data\System\Data\DataRowView.cs (2)
95else if (dataView.Table.DataSet != null && dataView.Table.DataSet.Relations.Contains(property)) {
fx\src\data\System\Data\DataSet.cs (1)
3398if (dt.DataSet != this) {
fx\src\data\System\Data\DataTable.cs (52)
267tempDSNamespace = this.DataSet.Namespace; 268this.DataSet.namespaceURI = this.Namespace; //this.DataSet.Namespace = this.Namespace; ?? 482Debug.Assert(DataSet != null); 512parentInfo[0] = allConstraints ? this.DataSet.Tables.IndexOf(fk.RelatedTable) : 0; 518childInfo[0] = allConstraints ? this.DataSet.Tables.IndexOf(fk.Table) : 0 ; //Since the constraint is on the current table, this is the child table. 578DataTable parentTable = (allConstraints == false) ? this : this.DataSet.Tables[parentInfo[0]]; 585DataTable childTable = (allConstraints == false) ? this : this.DataSet.Tables[childInfo[0]]; 867if (DataSet != null && !DataSet.ValidateCaseConstraint()) { 1031if (this.DataSet != null && value != this.DataSet.RemotingFormat) { 1138if (this.DataSet != null) { 1334if ((null == DataSet) || DataSet.ValidateLocaleConstraint()) { 1749if (DataSet != null) { // if it cant return from parent tables, return NS from dataset, if exists 1750return DataSet.Namespace; 2671if (DataSet != null && DataSet.fEnableCascading) { 3130DataSet.OnDataRowCreated( dr ); 3189DataSet.OnDataRowCreated( row ); 4153if (DataSet != null) { 4154savedEnforceConstraints = DataSet.EnforceConstraints; 4155DataSet.EnforceConstraints = false; 4194if (DataSet != null) 4195DataSet.EnforceConstraints = savedEnforceConstraints; 4845if (null == this.DataSet) { 4990if (null == this.DataSet) { 5092if (this.DataSet != null) { 5093this.DataSet.EnforceConstraints = originalEnforceConstraint; 5138if (this.DataSet != null) { 5139originalEnforceConstraint = this.DataSet.EnforceConstraints; 5140this.DataSet.EnforceConstraints = false; 5198if (this.DataSet != null) { // we should not throw for constraint, we already will throw for unsupported schema, so restore enforce cost, but not via property 5199this.DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 5256if (this.DataSet != null) { // we should not throw for constraint, we already will throw for unsupported schema, so restore enforce cost, but not via property 5257this.DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 5340if (this.DataSet != null) { 5341originalEnforceConstraint = this.DataSet.EnforceConstraints; 5342this.DataSet.EnforceConstraints = false; 5418if (this.DataSet != null) { // we should not throw for constraint, we already will throw for unsupported schema, so restore enforce cost, but not via property 5419this.DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 5492if (this.DataSet != null) { // we should not throw for constraint, we already will throw for unsupported schema, so restore enforce cost, but not via property 5493this.DataSet.RestoreEnforceConstraints(originalEnforceConstraint); 5783if (this.DataSet == null && this.tableNamespace == null) { // webdata 105506 5797if (this.DataSet == null) { 5816DataTable targetTable = CloneHierarchy(currentTable, this.DataSet, null); 5819DataTable destinationTable = this.DataSet.Tables[tempTable.tableName, tempTable.Namespace]; 5826ForeignKeyConstraint newFKC = (ForeignKeyConstraint)fkc.Clone(destinationTable.DataSet); 5835if (!this.DataSet.Relations.Contains(rel.RelationName)) 5836this.DataSet.Relations.Add(rel.Clone(this.DataSet)); 5854this.DataSet.Tables[tempTable.TableName, tempTable.Namespace].Columns[dc.ColumnName].Expression = dc.Expression;
fx\src\data\System\Data\DataTableCollection.cs (5)
280if (table.DataSet == dataSet) 282if (table.DataSet != null) 326if (oldArray[oldCur].DataSet == dataSet) { 334if (newArray[newCur].DataSet != dataSet) { 379if (table.DataSet != dataSet) {
fx\src\data\System\Data\DataTableReader.cs (2)
636if (table.DataSet != null) 637BaseCatalogName.DefaultValue = table.DataSet.DataSetName;
fx\src\data\System\Data\DataView.cs (2)
1222DataSet dataSet = table.DataSet; 1240DataSet dataSet = table.DataSet;
fx\src\data\System\Data\ForeignKeyConstraint.cs (14)
218if (Table.DataSet == null || !Table.DataSet.EnforceConstraints) 274if (row.Table.DataSet.EnforceConstraints) { 364if (row.RowState != DataRowState.Deleted && row.Table.DataSet.EnforceConstraints) { 382if (!Table.DataSet.fInReadXml && IsKeyNull(currentKey)) { 389if (row.Table.DataSet.EnforceConstraints) 452if (Table.DataSet.EnforceConstraints && Table.Rows.Count > 0) { 458Debug.Assert(Table.DataSet != null, "Relation " + ConstraintName + " isn't part of a DataSet, so this check shouldn't be happening."); 459if (!Table.DataSet.EnforceConstraints) 467Debug.Assert(Table.DataSet != null, "ForeignKeyConstraint " + ConstraintName + " isn't part of a DataSet, so this check shouldn't be happening."); 503Table.DataSet != null && Table.DataSet.EnforceConstraints && 555if (parentKey.Table.DataSet != childKey.Table.DataSet) {
fx\src\data\System\Data\Merger.cs (11)
115if (src.DataSet == dataSet) return; //somebody is doing an 'automerge' 126if (src.DataSet == null || src.DataSet.namespaceURI != this.dataSet.namespaceURI) { 131if (this.dataTable.DataSet == null || src.DataSet == null || 132src.DataSet.namespaceURI != this.dataTable.DataSet.namespaceURI) { 164if (dataTable.DataSet != null) { 165dataTable.DataSet.EnforceConstraints = false; 222if (row.Table.DataSet == dataSet) 288targetTable = table.Clone(table.DataSet); // if we are here mainly we are called from DataSet.Merge at this point we don't set
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (4)
469if (null != table.DataSet) { 470table.DataSet.Tables.Remove(table); 603if ((null != _dataSet) && (null == _dataTable.DataSet)) { 906if ((null != _dataSet) && null == _dataTable.DataSet) {
fx\src\data\System\Data\UniqueConstraint.cs (1)
187for (ParentForeignKeyConstraintEnumerator cs = new ParentForeignKeyConstraintEnumerator(Table.DataSet, Table); cs.GetNext();) {
fx\src\data\System\Data\XDRSchema.cs (1)
610_tableChild.DataSet.Relations.Add(relation);
fx\src\data\System\Data\XmlDataLoader.cs (2)
1132if (column.Table.DataSet != null && column.Table.DataSet.UdtIsWrapped) {
fx\src\data\System\Data\XMLDiffLoader.cs (2)
361if (column.Table.DataSet != null && column.Table.DataSet.UdtIsWrapped) {
fx\src\data\System\Data\xmlsaver.cs (9)
486if (dt.DataSet != null) { 489_ds = dt.DataSet; 804_ds = dt.DataSet; 866DataSet dataSet = (ds != null) ? ds : dt.DataSet; 1065(col.Table.DataSet != null ? col.Table.DataSet.Namespace : col.Table.Namespace); 1478if (((table.DataSet == null) || (_ds!= null && table.Namespace != _ds.Namespace)) && (schFormat == SchemaFormat.Remoting)) 2346if (dt.DataSet == null) { 2351_ds = dt.DataSet;
fx\src\data\System\Data\XMLSchema.cs (8)
562if (dt.DataSet != null) 563LoadSchema(schemaSet, dt.DataSet); 1130int iExisting = fKey[0].Table.DataSet.Relations.InternalIndexOf(relName); 1132if (fKey[0].Table.DataSet.Relations[iExisting].RelationName != relName) 1139pKey[0].Table.DataSet.Relations.Add(relation); 1151relation = fKey[0].Table.DataSet.Relations[iExisting]; 1462if (_tableChild.DataSet.Tables.InternalIndexOf(_tableChild.TableName) < -1) { // if we have multiple tables with the same name 1517_tableChild.DataSet.Relations.Add(relation);
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
2141Debug.Assert( row.Table.DataSet.EnforceConstraints == false ); 2150Debug.Assert( row.Table.DataSet.EnforceConstraints == false );