I\'m implementing repository pattern in company solution I work for, separating model classes in a Backend project and database context and migrations in DbContexts project.
It is now possible to redirect the generated context with -ContextDir option:
-ContextDir The directory to put DbContext file in. Paths are relative to the project directory.
So in your case it would be something like this:
Scaffold-DbContext "*connection*" "*provider*" -OutputDir "BackendProject" -ContextDir "DbContexts"
Source: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell