private async Task <EventStorePosition> CreateDefaultPosition()
        {
            var defaultPosition = new EventStorePosition()
            {
                Id              = CombGuid.Generate(),
                CommitPosition  = Position.Start.CommitPosition,
                PreparePosition = Position.Start.PreparePosition,
                CreatedOn       = DateTime.UtcNow,
            };

            await _dbContext.EventStorePositions.AddAsync(defaultPosition);

            await _dbContext.SaveChangesAsync();

            var createdPosition = await _dbContext.EventStorePositions.FirstOrDefaultAsync();

            return(createdPosition);
        }
        public async Task PersistIdempotenceAsync(EventStoreIdempotence entity)
        {
            await _dbContext.EventStoreIdempotences.AddAsync(entity);

            await _dbContext.SaveChangesAsync();
        }
        public async Task InsertOneAsync(EventStorePosition entity)
        {
            await _dbContext.EventStorePositions.AddAsync(entity);

            await _dbContext.SaveChangesAsync();
        }