问题
I would like to connect Identity Server to the Sql Server in my Asp.net core AuthServer project. But I am getting the error in the InitlizeDatabase(app) step as shown in the image below.
回答1:
Check the migration folder to make sure your migration is actually creating the Clients table.
回答2:
It was the EF Core version issue.
When I used the ef and the ef tool version as given in the documentation and it worked :)
So my code works with the version below: "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"
来源:https://stackoverflow.com/questions/41989984/error-sqlexception-invalid-object-name-clients-in-identity-server-4-project