No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'

后端 未结 12 2294
失恋的感觉
失恋的感觉 2020-12-05 22:44

I got the following error when I used sqlce 4.0 with entityframework 6.0

No Entity Framework provider found for the ADO.NET provider with invariant name \'Sy         


        
12条回答
  •  死守一世寂寞
    2020-12-05 23:36

    ErikEJ has pointed this out, but I'd like to highlight the fact, you MUST remember to install the Nuget package

    EntityFramework.SqlServerCompact
    

    I tried following the recommended answer, but didn't realise I didn't have the required NuGet package the App.config was referencing.

提交回复
热议问题