37 writes to EnforceConstraints
System.Data.Common (37)
System\Data\Common\DataAdapter.cs (2)
445commonDataSet.EnforceConstraints = false; 499commonDataSet!.EnforceConstraints = true;
System\Data\DataSet.cs (14)
620EnforceConstraints = false; 1122EnforceConstraints = false; 1127EnforceConstraints = fEnforce; 1163ds.EnforceConstraints = EnforceConstraints; 1255dsNew.EnforceConstraints = false; 1266dsNew.EnforceConstraints = fEnforceConstraints; 1357dsNew.EnforceConstraints = false; 1378dsNew.EnforceConstraints = fEnforceConstraints; 2458EnforceConstraints = false; 2469newDs.EnforceConstraints = false; 2569newDs.EnforceConstraints = fEnforce; 2571EnforceConstraints = fEnforce; 3269EnforceConstraints = false; 3274EnforceConstraints = fEnforce;
System\Data\DataTable.cs (5)
4629DataSet.EnforceConstraints = false; 4666DataSet.EnforceConstraints = _savedEnforceConstraints; 5701DataSet.EnforceConstraints = originalEnforceConstraint; 5763DataSet.EnforceConstraints = false; 6003DataSet.EnforceConstraints = false;
System\Data\Merger.cs (8)
49_dataSet.EnforceConstraints = false; 120_dataSet.EnforceConstraints = fEnforce; 130_dataSet.EnforceConstraints = false; 170_dataSet!.EnforceConstraints = fEnforce; 186_dataTable.DataSet.EnforceConstraints = false; 242_dataSet.EnforceConstraints = false; 270_dataSet.EnforceConstraints = fEnforce; 309_dataSet.EnforceConstraints = fEnforce;
System\Data\XmlDataLoader.cs (4)
304_dataSet.EnforceConstraints = false; 362_dataSet.EnforceConstraints = saveEnforce; 607_dataSet!.EnforceConstraints = false; // Disable constraints 657_dataSet.EnforceConstraints = fEnforce; // Restore constraints and return
System\Xml\XmlDataDocument.cs (4)
1028clone._dataSet.EnforceConstraints = _dataSet.EnforceConstraints; 1213_dataSet.EnforceConstraints = false; 1221_dataSet.EnforceConstraints = saveEnforce; 2567_dataSet.EnforceConstraints = false;
39 references to EnforceConstraints
System.Data.Common (39)
System\Data\Common\DataAdapter.cs (1)
444enforceConstraints = commonDataSet.EnforceConstraints;
System\Data\DataSet.cs (7)
517info.AddValue("DataSet.EnforceConstraints", EnforceConstraints); 1121bool fEnforce = EnforceConstraints; 1163ds.EnforceConstraints = EnforceConstraints; 1254bool fEnforceConstraints = dsNew.EnforceConstraints; 1356fEnforceConstraints = dsNew.EnforceConstraints; 2457bool fEnforce = EnforceConstraints; 3268bool fEnforce = EnforceConstraints;
System\Data\DataTable.cs (5)
1299return _dataSet.EnforceConstraints; 2855if (_dataSet != null && _dataSet.EnforceConstraints) 4628_savedEnforceConstraints = DataSet.EnforceConstraints; 5762originalEnforceConstraint = DataSet.EnforceConstraints; 6002originalEnforceConstraint = DataSet.EnforceConstraints;
System\Data\ForeignKeyConstraint.cs (7)
202if (Table!.DataSet == null || !Table.DataSet.EnforceConstraints) 278if (row.Table.DataSet.EnforceConstraints) 387if (row.RowState != DataRowState.Deleted && row.Table.DataSet.EnforceConstraints) 423if (row.Table.DataSet.EnforceConstraints) 499if (Table.DataSet.EnforceConstraints && Table.Rows.Count > 0) 508if (!Table.DataSet.EnforceConstraints) 568Table!.DataSet != null && Table.DataSet.EnforceConstraints &&
System\Data\Merger.cs (3)
48bool fEnforce = _dataSet.EnforceConstraints; 129fEnforce = _dataSet!.EnforceConstraints; 241bool fEnforce = _dataSet.EnforceConstraints;
System\Data\XmlDataLoader.cs (2)
303saveEnforce = _dataSet!.EnforceConstraints; 593bool fEnforce = _isTableLevel ? _dataTable!.EnforceConstraints : _dataSet!.EnforceConstraints;
System\Xml\XmlDataDocument.cs (14)
956Debug.Assert(DataSet.EnforceConstraints == false); 1028clone._dataSet.EnforceConstraints = _dataSet.EnforceConstraints; 1212bool saveEnforce = _dataSet.EnforceConstraints; 1794Debug.Assert(DataSet.EnforceConstraints == false); 1814if (DataSet.EnforceConstraints) 1830Debug.Assert(DataSet.EnforceConstraints == false); 1868if (DataSet.EnforceConstraints) 1884Debug.Assert(DataSet.EnforceConstraints == false); 1919if (DataSet.EnforceConstraints) 2390Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2458Debug.Assert(DataSet.EnforceConstraints == false); 2756Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2780Debug.Assert(row.Table.DataSet!.EnforceConstraints == false); 2818Debug.Assert(row.Table.DataSet!.EnforceConstraints == false);