Entity Framework using the wrong connection provider

前端 未结 4 1274
时光取名叫无心
时光取名叫无心 2021-01-05 17:21

I am trying to use Entity Framework 5 (code-first) for an ASP.NET Web Forms application, I have previously had a basic implementation running using the MySQL connection and

4条回答
  •  佛祖请我去吃肉
    2021-01-05 17:46

    I had the same issue with a different resolution, so I'll go ahead and post it here for the next person who searches.

    I had my connection string listed where it could be found in the web config in the section. It seemed to be reading the connection string, but not the providerName.

    I looked at it for a long time before realizing that I had needlessly put it inside the section.

    When I put my back in the root of , Entity Framework started using the right provider again.

提交回复
热议问题