Error: SqlException: Invalid object name 'Clients' in Identity Server 4 Project

核能气质少年 提交于 2019-12-12 03:44:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!