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

◆ Merge() [3/3]

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

Definition at line 4341 of file DataTable.cs.

4342 {
4343 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.Merge|API> {0}, table={1}, preserveChanges={2}, missingSchemaAction={3}", ObjectID, table?.ObjectID ?? 0, preserveChanges, missingSchemaAction);
4344 try
4345 {
4346 if (table == null)
4347 {
4348 throw ExceptionBuilder.ArgumentNull("table");
4349 }
4350 if ((uint)(missingSchemaAction - 1) <= 3u)
4351 {
4352 Merger merger = new Merger(this, preserveChanges, missingSchemaAction);
4353 merger.MergeTable(table);
4354 return;
4355 }
4357 }
4358 finally
4359 {
4360 DataCommonEventSource.Log.ExitScope(scopeId);
4361 }
4362 }
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.DataTable.ObjectID.