如何在泛型类中添加动态类作为类型参数

时间:2021-01-14 14:26:21

标签: c#-4.0 asp.net-core-3.1

我正在用 C# 和 angular 开发一个应用程序,我想在服务器端创建一个可以被任何控制器使用的通用服务 It is the service class

直到现在一切似乎都还可以,但是当我想注入它时,如下所示 I inject the service

这显示了这个错误 this is the error

请指导我如何解决这个问题

0 个答案:

没有答案