Entity Framework using the wrong connection provider

前端 未结 4 1257
时光取名叫无心
时光取名叫无心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 17:36

    Questions is old, but may be this will be helpful for somebody.

    I've got the same issue with transition from Oracle to MS SQL Server. Eventually, it appeared that code migrations were the root cause of the issue. You cannot just leave them as is after switching to another database provider. So, you must REGENERATE migrations for your new database provider.

提交回复
热议问题