Could not get the reflection type for DbContext

前端 未结 5 1320
慢半拍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:38

    I get this error when I generate the EF model by Scaffold-DbContext command and this finished with warnings. Then firstable I correct the warnings of Scaffold-DbContext and then scaffold razor items works fine.

提交回复
热议问题