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