/// <summary> /// Sets the current btrieve file (BB value) based on btrieveFile /// </summary> protected void AllocateBB(BtrieveFile btrieveFile, ushort maxRecordLength) { var btrieve = new BtrieveFileProcessor() { FullPath = Path.Combine(mbbsModule.ModulePath, btrieveFile.FileName) }; var connectionString = "Data Source=acs.db;Mode=Memory"; btrieve.CreateSqliteDBWithConnectionString(connectionString, btrieveFile); majorbbs.AllocateBB(btrieve, maxRecordLength, Path.GetFileName(btrieve.FullPath)); }
/// <summary> /// Sets the current btrieve file (BB value) based on btrieveFile /// </summary> protected void AllocateBB(BtrieveFile btrieveFile, ushort maxRecordLength) { var btrieve = new BtrieveFileProcessor() { FullPath = Path.Combine(mbbsModule.ModulePath, btrieveFile.FileName) }; var connectionString = BtrieveFileProcessor.GetDefaultConnectionStringBuilder("acs.db"); connectionString.Mode = SqliteOpenMode.Memory; btrieve.CreateSqliteDBWithConnectionString(connectionString, btrieveFile); majorbbs.AllocateBB(btrieve, maxRecordLength, Path.GetFileName(btrieve.FullPath)); }