Entity Framework Code First Migrations failing on Wrong Provider (3.5 instead of 4.0)

后端 未结 2 1750
迷失自我
迷失自我 2021-01-16 10:33

I am trying to add a migration (for the first time) to a project using Entity Framework 6.0.2 for SQL Server Compact (code first). The application is having no problems comm

2条回答
  •  遥遥无期
    2021-01-16 11:33

    Remove the binding redirect. It looks like you are trying to use private deployement, but are you using the correct System.data.SqlServerCe.dll (check the Assembly version). if it is 4.0.0.0 and not 4.0.0.1, then change to DbProviderfactories setting to point to the correct assembly version

提交回复
热议问题