public DataFile ExportData(DataType dataType, string database, bool dropDatabase = false) { IDataLoader loader = DataLoaderFactory.CreateDataLoader(dataType, context); DataFile export = loader.Export(database); if (dropDatabase) { context.DropDatabase(database); } return(export); }
public DataFile DefaultDataExport(string database, bool dropDatabase = false) { IDataLoader loader = DataLoaderFactory.CreateDefaultExporter(database, context); DataFile export = loader.Export(database); if (dropDatabase) { context.DropDatabase(database); } return(export); }