public IReadOnlyRepository <TAggregateRoot, TKey> CreateReadOnlyRepository()
        {
            CheckType(typeof(TAggregateRoot), typeof(TKey));

            return(_repositoryProvider.GetReadOnlyRepository());
        }