1 write to _dataSet
System.Data.Common (1)
System\Data\Merger.cs (1)
22
_dataSet
= dataSet;
50 references to _dataSet
System.Data.Common (50)
System\Data\Merger.cs (50)
45
Debug.Assert(
_dataSet
!= null);
47
if (source ==
_dataSet
) return; //somebody is doing an 'automerge'
48
bool fEnforce =
_dataSet
.EnforceConstraints;
49
_dataSet
.EnforceConstraints = false;
50
_IgnoreNSforTableLookup = (
_dataSet
._namespaceURI != source._namespaceURI); // if two DataSets have different
58
foreach (DataTable dt in
_dataSet
.Tables)
93
targetTable =
_dataSet
.Tables[sourceTable.TableName]!;
97
targetTable =
_dataSet
.Tables[sourceTable.TableName, sourceTable.Namespace]!; // we know that target table won't be null since MissingSchemaAction is Add , we have already added it!
115
MergeExtendedProperties(source.ExtendedProperties,
_dataSet
.ExtendedProperties);
116
foreach (DataTable dt in
_dataSet
.Tables)
120
_dataSet
.EnforceConstraints = fEnforce;
128
if (src.DataSet ==
_dataSet
) return; //somebody is doing an 'automerge'
129
fEnforce =
_dataSet
!.EnforceConstraints;
130
_dataSet
.EnforceConstraints = false;
138
if (
_dataSet
!= null)
142
if (src.DataSet == null || src.DataSet._namespaceURI !=
_dataSet
._namespaceURI)
159
if (dt == null &&
_dataSet
!= null)
162
_dataSet
.Tables[src.TableName] :
163
_dataSet
.Tables[src.TableName, src.Namespace];
170
_dataSet
!.EnforceConstraints = fEnforce;
234
Debug.Assert(
_dataSet
!= null);
241
bool fEnforce =
_dataSet
.EnforceConstraints;
242
_dataSet
.EnforceConstraints = false;
258
if (row.Table.DataSet ==
_dataSet
)
270
_dataSet
.EnforceConstraints = fEnforce;
309
_dataSet
.EnforceConstraints = fEnforce;
317
if (
_dataSet
!.Tables.Contains(table.TableName, true))
321
targetTable =
_dataSet
.Tables[table.TableName];
325
targetTable =
_dataSet
.Tables[table.TableName, table.Namespace];
342
_dataSet
!.Tables.Add(targetTable);
370
_dataSet
!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_MissingColumnDefinition, table.TableName, src.ColumnName), _missingSchemaAction);
384
_dataSet
!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_DataTypeMismatch, src.ColumnName), MissingSchemaAction.Error);
420
_dataSet
!.RaiseMergeFailed(targetTable, SR.DataMerge_PrimaryKeyMismatch, _missingSchemaAction);
429
_dataSet
!.RaiseMergeFailed(table,
469
Debug.Assert(
_dataSet
!= null);
475
Constraint? dest = src.Clone(
_dataSet
, _IgnoreNSforTableLookup);
479
_dataSet
.RaiseMergeFailed(table,
505
_dataSet
.RaiseMergeFailed(table,
521
Debug.Assert(
_dataSet
!= null);
529
int iDest =
_dataSet
.Relations.InternalIndexOf(relation.RelationName);
534
destRelation =
_dataSet
.Relations[iDest];
538
_dataSet
.RaiseMergeFailed(null,
549
_dataSet
.RaiseMergeFailed(null,
559
_dataSet
.RaiseMergeFailed(null,
571
_dataSet
.Tables[relation.ParentTable.TableName]! :
572
_dataSet
.Tables[relation.ParentTable.TableName, relation.ParentTable.Namespace]!;
575
_dataSet
.Tables[relation.ChildTable.TableName]! :
576
_dataSet
.Tables[relation.ChildTable.TableName, relation.ChildTable.Namespace]!;
589
_dataSet
.Relations.Add(destRelation);
594
_dataSet
.RaiseMergeFailed(null, e.Message, _missingSchemaAction);