This seems like basic problem, but I'm struggling with it (maybe because of tiredness).
E.g. - if i create instance of repository like this =>
var repositoryType = typeof(Repository<>).MakeGenericType(entityType);
// repository type==object :(
var repository = ServiceLocator.Current.GetInstance(repositoryType);
What's the best way to call repository.All()
method? Is reflection the only way?