I have a Generic repository which I want to register for DI, it implements an interface IRepository.
Normally I would create an instance of it like this:
<
You should be able to register the open generic with
services.AddTransient(typeof(IRepository<>), typeof(Repository<>));