Invalid object name 'dbo.AspNetUsers' in Asp.NET MVC 5 Entity Framework

后端 未结 7 522
悲哀的现实
悲哀的现实 2020-12-06 02:33

If you have an existing database, and you want to include ASP.NET Identity tables to it, you can face this error. You may not know how to integrate [AspNetRoles], [A

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 03:29

    Remove folder /.vs/[solution_name]/DesignTimeBuild. Next from command line: dotnet ef database update --context [your_db_context_name] It works for me.

提交回复
热议问题