internal static SoaRowsRepo1 CreateFileBasedShard(this MonthShardPassbookDB monthDb, DateTime day1)
        {
            var moRepo = monthDb.GetSoaRepo();
            var dbPath = Path.Combine(monthDb.GetShardsDir(), GetFilename(day1));
            var pbkDB  = new PassbookDB(monthDb.BankAccountId, dbPath, monthDb.CurrentUser);

            return(new SoaRowsRepo1(moRepo.BaseBalance, moRepo.BaseDate, pbkDB));
        }
 private static IEnumerable <string> GetMatchingFiles(MonthShardPassbookDB monthDb)
 => Directory.EnumerateFiles(monthDb.GetShardsDir(), "*" + DB_SUFFIX);