using System; using System.Collections.Generic; using System.Text; using iPackage.Core.Web.Models.Entity; using iPackage.Models.Entity; using iPackage.Models.Service; using Microsoft.EntityFrameworkCore; namespace iPackage.Core.Web.Repositories { public class RepositoryWrapper : IRepositoryWrapper, IScopedDependency { private readonly ApplicationIdentityContext _context; public RepositoryWrapper(ApplicationIdentityContext context) { _context = context; } public IBaseRepository SetRepository() where T : ApiEntity { IBaseRepository repository = new BaseRepository(_context); return repository; } } }