37 writes to EnforceConstraints
System.Data.Common (37)
System\Data\Common\DataAdapter.cs (2)
445
commonDataSet.
EnforceConstraints
= false;
499
commonDataSet!.
EnforceConstraints
= true;
System\Data\DataSet.cs (14)
620
EnforceConstraints
= false;
1122
EnforceConstraints
= false;
1127
EnforceConstraints
= fEnforce;
1163
ds.
EnforceConstraints
= EnforceConstraints;
1255
dsNew.
EnforceConstraints
= false;
1266
dsNew.
EnforceConstraints
= fEnforceConstraints;
1357
dsNew.
EnforceConstraints
= false;
1378
dsNew.
EnforceConstraints
= fEnforceConstraints;
2458
EnforceConstraints
= false;
2469
newDs.
EnforceConstraints
= false;
2569
newDs.
EnforceConstraints
= fEnforce;
2571
EnforceConstraints
= fEnforce;
3269
EnforceConstraints
= false;
3274
EnforceConstraints
= fEnforce;
System\Data\DataTable.cs (5)
4629
DataSet.
EnforceConstraints
= false;
4666
DataSet.
EnforceConstraints
= _savedEnforceConstraints;
5701
DataSet.
EnforceConstraints
= originalEnforceConstraint;
5763
DataSet.
EnforceConstraints
= false;
6003
DataSet.
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)
1028
clone._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)
444
enforceConstraints = commonDataSet.
EnforceConstraints
;
System\Data\DataSet.cs (7)
517
info.AddValue("DataSet.EnforceConstraints",
EnforceConstraints
);
1121
bool fEnforce =
EnforceConstraints
;
1163
ds.EnforceConstraints =
EnforceConstraints
;
1254
bool fEnforceConstraints = dsNew.
EnforceConstraints
;
1356
fEnforceConstraints = dsNew.
EnforceConstraints
;
2457
bool fEnforce =
EnforceConstraints
;
3268
bool fEnforce =
EnforceConstraints
;
System\Data\DataTable.cs (5)
1299
return _dataSet.
EnforceConstraints
;
2855
if (_dataSet != null && _dataSet.
EnforceConstraints
)
4628
_savedEnforceConstraints = DataSet.
EnforceConstraints
;
5762
originalEnforceConstraint = DataSet.
EnforceConstraints
;
6002
originalEnforceConstraint = DataSet.
EnforceConstraints
;
System\Data\ForeignKeyConstraint.cs (7)
202
if (Table!.DataSet == null || !Table.DataSet.
EnforceConstraints
)
278
if (row.Table.DataSet.
EnforceConstraints
)
387
if (row.RowState != DataRowState.Deleted && row.Table.DataSet.
EnforceConstraints
)
423
if (row.Table.DataSet.
EnforceConstraints
)
499
if (Table.DataSet.
EnforceConstraints
&& Table.Rows.Count > 0)
508
if (!Table.DataSet.
EnforceConstraints
)
568
Table!.DataSet != null && Table.DataSet.
EnforceConstraints
&&
System\Data\Merger.cs (3)
48
bool fEnforce = _dataSet.
EnforceConstraints
;
129
fEnforce = _dataSet!.
EnforceConstraints
;
241
bool fEnforce = _dataSet.
EnforceConstraints
;
System\Data\XmlDataLoader.cs (2)
303
saveEnforce = _dataSet!.
EnforceConstraints
;
593
bool fEnforce = _isTableLevel ? _dataTable!.EnforceConstraints : _dataSet!.
EnforceConstraints
;
System\Xml\XmlDataDocument.cs (14)
956
Debug.Assert(DataSet.
EnforceConstraints
== false);
1028
clone._dataSet.EnforceConstraints = _dataSet.
EnforceConstraints
;
1212
bool saveEnforce = _dataSet.
EnforceConstraints
;
1794
Debug.Assert(DataSet.
EnforceConstraints
== false);
1814
if (DataSet.
EnforceConstraints
)
1830
Debug.Assert(DataSet.
EnforceConstraints
== false);
1868
if (DataSet.
EnforceConstraints
)
1884
Debug.Assert(DataSet.
EnforceConstraints
== false);
1919
if (DataSet.
EnforceConstraints
)
2390
Debug.Assert(row.Table.DataSet!.
EnforceConstraints
== false);
2458
Debug.Assert(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);