Entity Framework cannot update database

前端 未结 5 1995
小蘑菇
小蘑菇 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:21

    So, If I add the following line of code to the start-up of the application it will use the SQL 2014 version of the Microsoft.SqlServer.Types assembly which doesn't seem to have the problem stated above.

    System.Data.Entity.SqlServer.SqlProviderServices.SqlServerTypesAssemblyName = "Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91";
    

    This is fine for machines that have SQL Server 2014 SDK installed.

    I have also submitted a bug with Microsoft here:

    https://connect.microsoft.com/SQLServer/Feedback/Details/2139143

提交回复
热议问题