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

◆ RollbackAddedItems()

void System.Data.ProviderBase.SchemaMapping.RollbackAddedItems ( List< object > items)
inlineprivate

Definition at line 456 of file SchemaMapping.cs.

457 {
458 if (items == null)
459 {
460 return;
461 }
462 int num = items.Count - 1;
463 while (0 <= num)
464 {
465 if (items[num] != null)
466 {
467 if (items[num] is DataColumn dataColumn)
468 {
469 if (dataColumn.Table != null)
470 {
471 dataColumn.Table.Columns.Remove(dataColumn);
472 }
473 }
474 else if (items[num] is DataTable { DataSet: not null } dataTable)
475 {
476 dataTable.DataSet.Tables.Remove(dataTable);
477 }
478 }
479 num--;
480 }
481 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)

References System.Xml.Dictionary, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().

Referenced by System.Data.ProviderBase.SchemaMapping.SetupSchemaWithKeyInfo(), and System.Data.ProviderBase.SchemaMapping.SetupSchemaWithoutKeyInfo().