Could not get the reflection type for DbContext

前端 未结 5 1333
慢半拍i
慢半拍i 2020-12-10 01:47

When scaffolding a controller in ASP Core 2.0 VS 2017 I get the following:

Could not get the reflection type for DbContext :

BE.Data.ApplicationDb

5条回答
  •  庸人自扰
    2020-12-10 02:21

    I'm using visual studio 2019 and .Net Core 3.1

    I just realized that somewhere in my code I had used unsafe { } block. I commented unsafe code for temporary and I can scaffold again.

提交回复
热议问题