Adding DbContextOptions in Startup.cs not registering data store

后端 未结 4 1364
陌清茗
陌清茗 2021-01-04 16:58

My problem is that the below code does not register a data store during startup. This is the specific \"error\" statement I get in the response from the application:

4条回答
  •  有刺的猬
    2021-01-04 17:27

    Are you injecting your context into your controller or wherever you are using it? I discovered that if you try to new up the context instead of injecting it, it does not use the configuration specified in Startup.cs

提交回复
热议问题