using Marten; namespace Netina.Infrastructure.Marten; public class MartenRepositoryWrapper : IMartenRepositoryWrapper { private readonly IDocumentStore _documentStore; public MartenRepositoryWrapper(IDocumentStore documentStore) { _documentStore = documentStore; } public IMartenRepository SetRepository() where TMartenEntity : IMartenEntity => new MartenRepository(_documentStore); }