refactor(DbRepositoryFactory): remvoed

This commit is contained in:
2025-10-22 17:26:31 +02:00
parent 3b825d4ea3
commit 1febae72c2
4 changed files with 6 additions and 53 deletions

View File

@@ -1,28 +0,0 @@
using DigitalData.Core.Abstraction.Application.Repository;
using Microsoft.Extensions.DependencyInjection;
#if NETFRAMEWORK
using System;
#endif
namespace DigitalData.Core.Infrastructure.Factory
#if NET
;
#elif NETFRAMEWORK
{
#endif
public class DbRepositoryFactory : IRepositoryFactory
{
private readonly IServiceProvider _provider;
public DbRepositoryFactory(IServiceProvider provider)
{
_provider = provider;
}
public IRepository<TEntity> Get<TEntity>() => _provider.GetRequiredService<IRepository<TEntity>>();
}
#if NETFRAMEWORK
}
#endif