1 write to dataSet
System.Data (1)
fx\src\data\System\Data\Merger.cs (1)
28
this.
dataSet
= dataSet;
46 references to dataSet
System.Data (46)
fx\src\data\System\Data\Merger.cs (46)
51
if (source ==
dataSet
) return; //somebody is doing an 'automerge'
52
bool fEnforce =
dataSet
.EnforceConstraints;
53
dataSet
.EnforceConstraints = false;
54
_IgnoreNSforTableLookup = (
dataSet
.namespaceURI != source.namespaceURI); // if two DataSets have different
61
foreach(DataTable dt in
dataSet
.Tables) {
88
targetTable =
dataSet
.Tables[sourceTable.TableName];
91
targetTable =
dataSet
.Tables[sourceTable.TableName, sourceTable.Namespace];// we know that target table wont be null since MissingSchemaAction is Add , we have already added it!
105
MergeExtendedProperties(source.ExtendedProperties,
dataSet
.ExtendedProperties);
106
foreach(DataTable dt in
dataSet
.Tables)
109
dataSet
.EnforceConstraints = fEnforce;
115
if (src.DataSet ==
dataSet
) return; //somebody is doing an 'automerge'
116
fEnforce =
dataSet
.EnforceConstraints;
117
dataSet
.EnforceConstraints = false;
124
if (this.
dataSet
!= null) { // this is ds.Merge
126
if (src.DataSet == null || src.DataSet.namespaceURI != this.
dataSet
.namespaceURI) {
140
if (dt == null &&
dataSet
!= null) {
142
dt =
dataSet
.Tables[src.TableName];
145
dt =
dataSet
.Tables[src.TableName, src.Namespace];
154
dataSet
.EnforceConstraints = fEnforce;
208
bool fEnforce =
dataSet
.EnforceConstraints;
209
dataSet
.EnforceConstraints = false;
222
if (row.Table.DataSet ==
dataSet
)
230
dataSet
.EnforceConstraints = fEnforce;
268
dataSet
.EnforceConstraints = fEnforce;
274
if (
dataSet
.Tables.Contains(table.TableName, true))
276
targetTable =
dataSet
.Tables[table.TableName];
279
targetTable =
dataSet
.Tables[table.TableName, table.Namespace];
291
dataSet
.Tables.Add(targetTable);
311
dataSet
.RaiseMergeFailed(targetTable, Res.GetString(Res.DataMerge_MissingColumnDefinition, table.TableName, src.ColumnName), missingSchemaAction);
320
dataSet
.RaiseMergeFailed(targetTable, Res.GetString(Res.DataMerge_DataTypeMismatch, src.ColumnName), MissingSchemaAction.Error);
352
dataSet
.RaiseMergeFailed(targetTable, Res.GetString(Res.DataMerge_PrimaryKeyMismatch), missingSchemaAction);
358
dataSet
.RaiseMergeFailed(table,
396
Constraint dest = src.Clone(
dataSet
, _IgnoreNSforTableLookup);
399
dataSet
.RaiseMergeFailed(table,
419
dataSet
.RaiseMergeFailed(table,
440
int iDest =
dataSet
.Relations.InternalIndexOf(relation.RelationName);
444
destRelation =
dataSet
.Relations[iDest];
447
dataSet
.RaiseMergeFailed(null,
457
dataSet
.RaiseMergeFailed(null,
467
dataSet
.RaiseMergeFailed(null,
483
parent =
dataSet
.Tables[relation.ParentTable.TableName];
486
parent =
dataSet
.Tables[relation.ParentTable.TableName, relation.ParentTable.Namespace];
492
child =
dataSet
.Tables[relation.ChildTable.TableName];
495
child =
dataSet
.Tables[relation.ChildTable.TableName,relation.ChildTable.Namespace];
507
dataSet
.Relations.Add(destRelation);
515
dataSet
.RaiseMergeFailed(null, e.Message, missingSchemaAction);