For a given repository interface IRepository<T> where T: Base and a bunch of classes that inherit Base (for instance, Text) how do you create instances of a provider that implements IRepository, for instance JsonRepository<T> with Text as T (JsonRepository<Text>) and run methods on it?
I'd like to use reflection with a for or foreach to create instances of repositories for all the classes inheriting Base and perform some data management functions on them.
What I want to avoid - if you had 100 classes inheriting Base class you obviously wouldn't go creating instances manually in code and then running it?
 
     
     
    