private string GetFileName(ClassMapping mapping)
{
switch (_connDesc.Type)
{
case CsvConnectionType.Directory:
// Use the table name as the file name.
return Path.Combine(_connDesc.Path, mapping.Table + ".csv");
case CsvConnectionType.FileName:
// Only one file, just open a reader to it.
return _connDesc.Path;
default:
throw new LoggingException("Unable to get filename for class " +
mapping + " for unsupported connection type: " + _connDesc.Type);
}
}