Add entity/resource type as generic parameter.