39 writes to EnforceConstraints
System.Data (37)
fx\src\data\System\Data\Common\DataAdapter.cs (2)
475
commonDataSet.
EnforceConstraints
= false;
521
commonDataSet.
EnforceConstraints
= true;
fx\src\data\System\Data\DataSet.cs (14)
514
this.
EnforceConstraints
= false;
1085
EnforceConstraints
= false;
1088
EnforceConstraints
= fEnforce;
1115
ds.
EnforceConstraints
= EnforceConstraints;
1188
dsNew.
EnforceConstraints
= false;
1197
dsNew.
EnforceConstraints
= fEnforceConstraints;
1281
dsNew.
EnforceConstraints
= false;
1298
dsNew.
EnforceConstraints
= fEnforceConstraints;
2215
this.
EnforceConstraints
= false;
2224
newDs.
EnforceConstraints
= false;
2302
newDs.
EnforceConstraints
= fEnforce;
2304
this.
EnforceConstraints
= fEnforce;
2988
EnforceConstraints
= false;
2991
EnforceConstraints
= fEnforce;
fx\src\data\System\Data\DataTable.cs (5)
4155
DataSet.
EnforceConstraints
= false;
4195
DataSet.
EnforceConstraints
= savedEnforceConstraints;
5093
this.DataSet.
EnforceConstraints
= originalEnforceConstraint;
5140
this.DataSet.
EnforceConstraints
= false;
5342
this.DataSet.
EnforceConstraints
= false;
fx\src\data\System\Data\Merger.cs (8)
53
dataSet.
EnforceConstraints
= false;
109
dataSet.
EnforceConstraints
= fEnforce;
117
dataSet.
EnforceConstraints
= false;
154
dataSet.
EnforceConstraints
= fEnforce;
165
dataTable.DataSet.
EnforceConstraints
= false;
209
dataSet.
EnforceConstraints
= false;
230
dataSet.
EnforceConstraints
= fEnforce;
268
dataSet.
EnforceConstraints
= fEnforce;
fx\src\data\System\Data\XmlDataLoader.cs (4)
282
dataSet.
EnforceConstraints
= false;
334
dataSet.
EnforceConstraints
= saveEnforce;
581
dataSet.
EnforceConstraints
= false; // Disable constraints
625
dataSet.
EnforceConstraints
= fEnforce; // Restore constraints and return
fx\src\data\System\NewXml\XmlDataDocument.cs (4)
931
clone.dataSet.
EnforceConstraints
= this.dataSet.EnforceConstraints;
1094
dataSet.
EnforceConstraints
= false;
1101
dataSet.
EnforceConstraints
= saveEnforce;
2318
this.dataSet.
EnforceConstraints
= false;
System.Data.Linq (2)
SqlClient\Reader\ObjectReaderCompiler.cs (2)
2528
ds.
EnforceConstraints
= false;
2815
ds.
EnforceConstraints
= false;
38 references to EnforceConstraints
System.Data (38)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1141
initClassMethod.Statements.Add(Assign(Property(This(), "EnforceConstraints"), Primitive(dataSet.
EnforceConstraints
)));
fx\src\data\System\Data\Common\DataAdapter.cs (1)
474
enforceContraints = commonDataSet.
EnforceConstraints
;
fx\src\data\System\Data\DataSet.cs (7)
418
info.AddValue("DataSet.EnforceConstraints",
EnforceConstraints
);
1084
bool fEnforce =
EnforceConstraints
;
1115
ds.EnforceConstraints =
EnforceConstraints
;
1187
bool fEnforceConstraints = dsNew.
EnforceConstraints
;
1280
fEnforceConstraints = dsNew.
EnforceConstraints
;
2214
bool fEnforce = this.
EnforceConstraints
;
2987
bool fEnforce =
EnforceConstraints
;
fx\src\data\System\Data\DataTable.cs (5)
1208
return dataSet.
EnforceConstraints
;
2633
if (dataSet != null && dataSet.
EnforceConstraints
) {
4154
savedEnforceConstraints = DataSet.
EnforceConstraints
;
5139
originalEnforceConstraint = this.DataSet.
EnforceConstraints
;
5341
originalEnforceConstraint = this.DataSet.
EnforceConstraints
;
fx\src\data\System\Data\ForeignKeyConstraint.cs (7)
218
if (Table.DataSet == null || !Table.DataSet.
EnforceConstraints
)
274
if (row.Table.DataSet.
EnforceConstraints
) {
364
if (row.RowState != DataRowState.Deleted && row.Table.DataSet.
EnforceConstraints
) {
389
if (row.Table.DataSet.
EnforceConstraints
)
452
if (Table.DataSet.
EnforceConstraints
&& Table.Rows.Count > 0) {
459
if (!Table.DataSet.
EnforceConstraints
)
503
Table.DataSet != null && Table.DataSet.
EnforceConstraints
&&
fx\src\data\System\Data\Merger.cs (3)
52
bool fEnforce = dataSet.
EnforceConstraints
;
116
fEnforce = dataSet.
EnforceConstraints
;
208
bool fEnforce = dataSet.
EnforceConstraints
;
fx\src\data\System\Data\XmlDataLoader.cs (2)
281
saveEnforce = dataSet.
EnforceConstraints
;
568
bool fEnforce = isTableLevel ? dataTable.EnforceConstraints : dataSet.
EnforceConstraints
;
fx\src\data\System\NewXml\XmlDataDocument.cs (12)
864
Debug.Assert( DataSet.
EnforceConstraints
== false );
931
clone.dataSet.EnforceConstraints = this.dataSet.
EnforceConstraints
;
1093
bool saveEnforce = dataSet.
EnforceConstraints
;
1601
Debug.Assert( DataSet.
EnforceConstraints
== false );
1618
if ( DataSet.
EnforceConstraints
!= false )
1634
Debug.Assert( DataSet.
EnforceConstraints
== false );
1669
if ( DataSet.
EnforceConstraints
!= false )
1685
Debug.Assert( DataSet.
EnforceConstraints
== false );
1715
if ( DataSet.
EnforceConstraints
!= false )
2141
Debug.Assert( row.Table.DataSet.
EnforceConstraints
== false );
2150
Debug.Assert( row.Table.DataSet.
EnforceConstraints
== false );
2214
Debug.Assert( this.DataSet.
EnforceConstraints
== false );