Entity Framework cannot update database

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

    I had the same issue, and fixed it by adding the following lines to the web.config of my application:

    
      
        
          
          
        
      
    
    

    This forces the EntityFramework to use the version 10 of the SqlServer.Types.dll, which doesn't have the Geometry type apparently.

提交回复
热议问题