public interface IGenaricRepository<T> where T : class { } public class GenaricRepostory<T> : IGenaricRepository<T> where T : class { }
запуск
services.AddScoped(typeof(IGenaricRepository<>), typeof(GenaricRepostory<>));