public static void TestReadFileIntoChunkDb(string filePath) { var dbFilePath = Path.Combine(Path.GetTempPath(), "newChunkDB.db"); logger.DebugFormat("DB file path: {0}", dbFilePath); var dbs = new ChunkDbService(dbFilePath, true); dbs.AddFileAllChunks(filePath); logger.Debug("Data file processing finished."); }
public void TestGenerateChunkMap(string filePath) { XmlConfigurator.ConfigureAndWatch(new FileInfo("NHibernate.Debug.config.xml")); var logger = LogManager.GetLogger("CreateChunkDb"); var dbFilePath = Path.Combine(Path.GetTempPath(), "newChunkDB.db"); logger.DebugFormat("DB file path: {0}", dbFilePath); var dbs = new ChunkDbService(dbFilePath, true); dbs.AddFileAllChunks(filePath); logger.Debug("Data file processing finished."); }