How can I invoke following method while I have not TRootEntity
, but have just its TYPE
:
public void Class
Have a look at this answer from the great Jon Skeet. You should be able to adapt it to your needs.
You cannot code Generic methods to run by passing a runtime Type.
Generics need to have the type at compile time.
You may need to use reflection (see answer of mr. Ferreira that point on how to do that).