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
Could not get the reflection type for DbContext :
BE.Data.ApplicationDb
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.
unsafe { }