ASP.NET/Identity Error: The entity type ApplicationUser is not part of the model for the current context

前端 未结 2 1205
南方客
南方客 2020-12-31 05:29

In Move ASP.NET Identity store to EF Sql database zoidbergi described an issue similar to that which I\'m experiencing, but which was not completely answered. I am receiving

2条回答
  •  余生分开走
    2020-12-31 06:33

    In my case it was the providerName property of the connection string. I used a copy of Database First generated connection string which uses System.Data.EntityClient while normal connection strings (to SQL Server) use System.Data.SqlClient. So I changed this

    
    

    to this

    
    

提交回复
热议问题