How to access DB Context in program.cs

前端 未结 0 1399
一生所求
一生所求 2020-12-22 19:06

I have setup .net core project and db context. I am using dependency injection and accessing DbContext object in Controller, but I need to access DbContext object in Program

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