private static void SetColumnMappings(SqlBulkCopy copy) { if (copy.DestinationTableName == Settings.StockTableName) { StockDataTable.SetColumnMappings(copy); return; } if (copy.DestinationTableName == Settings.InterestRateTableName) { InterestRateDataTable.SetColumnMappings(copy); return; } throw new Exception($"Failed: the table name {copy.DestinationTableName} is currently not supported"); }