After doing everything as described in the migration guide I'm still getting the error:
Unable to create an object of type 'Context'. Add an implementation of 'IDesignTimeDbContextFactory
' to the project, or see https://go.microsoft.com/fwlink/?linkid=851728 for additional patterns supported at design time.
Adding a migration or running Update-Database from Package Manager Console works just fine but running dotnet ef database update fails.
Sample code can be found here: https://github.com/thiagomajesk/ASP.NET-Core-Bootstrap-Template
@thiagomajesk - It could be arising from multiple projects scenario.
Can you tell us
Update-Database?dotnet ef database update command?dotnet ef? One of them may be needed since your DbContext is not in same project as your Startup.cs@smitpatel
Can you run dotnet ef with --startup-project switch pointing to your Project.Web project file and see if that works?
@smitpatel It works if run dotnet ef --startup-project ../Project.Web database update from the Project.Infra folder. I've added a note to the docs because I don't think it is explicit enough about that. Thanks!