예제 #1
0
        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);
        }
예제 #2
0
        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);
        }