Entity Framework cannot update database

前端 未结 5 2006
小蘑菇
小蘑菇 2020-12-08 06:54

My application crashes with the following error whenever I save to the DB.

Unable to find an entry point named \'SetClrFeatureSwitchMap\' in DLL \'Sql

5条回答
  •  佛祖请我去吃肉
    2020-12-08 07:42

    From my experience with this error, this happens only with Entity Framework 5 targeting .NET 4 (as opposed to .NET 4.5) when using a SQL Server with SQL Server Service Pack 3. More info on possible root cause here. Solutions that worked for me:
    1) KdBoer's fix, or
    2) Update the application to Entity Framework 6

提交回复
热议问题