how to pass unknown generic type to generic method in dotnet?

前端 未结 0 829
情深已故
情深已故 2020-11-28 00:14

I\'m using EF core , I\'m trying to make something like

 var classType =  Type.GetType(className);
 var query = campContext.Set(classType).FirstOrDefault(o=&g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题