No DbContext was found in assembly 'deneme.Server'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic.

0

asp.net core ile deneme yapıyorum.  dotnet ef migrations add "initial" -o "Data/Migrations" komotundan sonra şu hatayı veriyor

No DbContext was found in assembly 'deneme.Server'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic. Sorun ne olabilir?

1ogrenci 1ogrenci (11)
1 ay önce sordu

    Toplam 1 Cevap


    0

    Komutu doğru klasörde çalıştırdığından emin ol:

    C:\Users\uzmanim\source\repos\Deneme\deneme.Server>dotnet ef migrations add "initial" -o "Data/Migrations"

    Komutu core projenin olduğu klasörde çalıştırmalısın.

    Bir de Visual Studio uygulamasını kapat ve tekrar aç. Bazen bu da işe yarıyor.

    alattin alattin (17018)
    1 ay önce cevaplandı

      üyelik gerektirir

      Cevap yazabilmek için üye girişi yapmalısınız.

      Eğer uzmanim.net üyesiyseniz giriş yapabilirsiniz: üye girişi yap
      uzmanim.net'e üye olmak çok kolaydır: hemen kayıt ol