Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Merge() [7/7]

void System.Data.DataSet.Merge ( DataTable table,
bool preserveChanges,
MissingSchemaAction missingSchemaAction )
inline

Definition at line 2519 of file DataSet.cs.

2520 {
2521 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataSet.Merge|API> {0}, table={1}, preserveChanges={2}, missingSchemaAction={3}", ObjectID, table?.ObjectID ?? 0, preserveChanges, missingSchemaAction);
2522 try
2523 {
2524 if (table == null)
2525 {
2526 throw ExceptionBuilder.ArgumentNull("table");
2527 }
2528 if ((uint)(missingSchemaAction - 1) <= 3u)
2529 {
2530 Merger merger = new Merger(this, preserveChanges, missingSchemaAction);
2531 merger.MergeTable(table);
2532 return;
2533 }
2535 }
2536 finally
2537 {
2538 DataCommonEventSource.Log.ExitScope(scopeId);
2539 }
2540 }
static ArgumentOutOfRangeException InvalidMissingSchemaAction(MissingSchemaAction value)
Definition ADP.cs:134

References System.Data.ExceptionBuilder.ArgumentNull(), System.Data.Common.ADP.InvalidMissingSchemaAction(), System.Data.DataCommonEventSource.Log, and System.Data.DataSet.ObjectID.