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

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

I use Entity Framework Code First,

My connection string is in a configuration file:


    
    <         


        
4条回答
  •  無奈伤痛
    2020-12-13 17:34

    You're missing the following piece of code after the connectionString attribute (assuming that you're using SQL):

    providerName="System.Data.SqlClient"

提交回复
热议问题