13 writes to EnforceConstraints
System.Data (13)
fx\src\data\System\Data\DataTable.cs (9)
1250
this.
EnforceConstraints
= false;
4158
this.
EnforceConstraints
= false;
4197
this.
EnforceConstraints
= true;
5096
this.
EnforceConstraints
= originalEnforceConstraint;
5144
this.
EnforceConstraints
= false;
5346
this.
EnforceConstraints
= false;
5585
this.
EnforceConstraints
=false;
5596
newDt.
EnforceConstraints
= false;
5668
this.
EnforceConstraints
= fEnforce;
fx\src\data\System\Data\XmlDataLoader.cs (4)
278
dataTable.
EnforceConstraints
= false;
330
dataTable.
EnforceConstraints
= saveEnforce;
578
dataTable.
EnforceConstraints
= false; // Disable constraints
621
dataTable.
EnforceConstraints
= fEnforce; // Restore constraints and return
12 references to EnforceConstraints
System.Data (12)
fx\src\data\System\Data\DataColumn.cs (2)
208
if (!value && table.
EnforceConstraints
)
958
if (((oldValue < 0) || (value < oldValue)) && (null != table) && table.
EnforceConstraints
) {
fx\src\data\System\Data\DataTable.cs (5)
2585
if (
EnforceConstraints
&& !inLoad ) { // if we are evaluating expression, we need to validate constraints
3762
if (
EnforceConstraints
&& !inLoad ) {
5143
originalEnforceConstraint = this.
EnforceConstraints
;
5345
originalEnforceConstraint = this.
EnforceConstraints
;
5584
bool fEnforce = this.
EnforceConstraints
;
fx\src\data\System\Data\Merger.cs (1)
159
if (dataTable.
EnforceConstraints
) {
fx\src\data\System\Data\UniqueConstraint.cs (2)
202
if (Table.
EnforceConstraints
)
236
if (Table.
EnforceConstraints
&&
fx\src\data\System\Data\XmlDataLoader.cs (2)
277
saveEnforce = dataTable.
EnforceConstraints
;
568
bool fEnforce = isTableLevel ? dataTable.
EnforceConstraints
: dataSet.EnforceConstraints;