2024-05-28 18:50:02 +03:30
|
|
|
|
using Marten;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Brizco.Infrastructure.Marten;
|
|
|
|
|
|
|
2024-08-09 21:42:04 +03:30
|
|
|
|
public class MartenRepositoryWrapper(IDocumentStore documentStore) : IMartenRepositoryWrapper
|
2024-05-28 18:50:02 +03:30
|
|
|
|
{
|
|
|
|
|
|
public IMartenRepository<TMartenEntity> SetRepository<TMartenEntity>() where TMartenEntity : IMartenEntity
|
2024-08-09 21:42:04 +03:30
|
|
|
|
=> new MartenRepository<TMartenEntity>(documentStore);
|
2024-05-28 18:50:02 +03:30
|
|
|
|
}
|