The connection string 'MyConnection' in the application's configuration file does not contain the required providerName attribute."

前端 未结 4 2183
傲寒
傲寒 2020-12-13 16:57

I use Entity Framework Code First,

My connection string is in a configuration file:


    
    <         


        
4条回答
  •  长情又很酷
    2020-12-13 17:35

    In my case the problem was with an incorrect StartUp project target. In the PM console the target migration assembly project was correct.

    I have a multiproject solution and the target was on some web-service project.

    So I changed the StartUp to the main WebSite project and the migration have complited without errors.

提交回复
热议问题