How can I restrict TModel to be classes only or to be implementing a specific interface?
@typeparam TModel
cannot get the syntax working.
The solution is to put the type constraint additionally in a partial code behind class. It works!