C# Dotnet core - Issues with implementing generic DBContext in constructor
问题 I am struggling with this coming back from a long layoff. I asked a question regarding the configuring of a DBContext in my generic base repository. Only after a user has logged in can I then construct a connection string so I cannot register a service in startup.cs - I have to use a constructor argument to instantiate my DBContext. I got this answer which I thought would address the problem however I am getting an error in the following factory class: public class ContextFactory<T> :