Calimero
Hectopat
- Katılım
- 19 Aralık 2020
- Mesajlar
- 120
Daha fazla
- Cinsiyet
- Erkek
Performans ödevim için bilgisayar satış sayfası yapacağım fakat nuget package Console'a "add-migration init" yazınca bu hatayı veriyor.
Hata:
No database provider has been configured for this dbcontext. A provider can be configured by overriding the 'dbcontext. Onconfiguring' method or by using 'adddbcontext' on the application service provider. If 'adddbcontext' is used, then also ensure that your dbcontext type accepts a dbcontextoptions<tcontext> object in its constructor and passes it to the base constructor for dbcontext.
Hata:
No database provider has been configured for this dbcontext. A provider can be configured by overriding the 'dbcontext. Onconfiguring' method or by using 'adddbcontext' on the application service provider. If 'adddbcontext' is used, then also ensure that your dbcontext type accepts a dbcontextoptions<tcontext> object in its constructor and passes it to the base constructor for dbcontext.