Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

No DbContext was found in assembly 'APP.Web.Host'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic. #7395


User avatar
0
gryphon644 created

Hello, I'm using Mac OSX and following this doc https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Getting-Started-MacOSX to run the application on my mac but facing this issue when i run 'dotnet ef database update'. Can you help me figure out whats really wrong?


3 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    You need to execute the migration command under the XXX.EntityFrameworkCore project

  • User Avatar
    0
    gryphon644 created

    Worked. Thanks

  • User Avatar
    1
    maliming created
    Support Team

    I will update the documentation.