using Marten; using Netina.Common.Models.Entity; using Netina.Repository.Repositories.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); }