I'm on a project with an azure DB and Entity Code First. I'd like to add Spatial Type (DbGeography) in my project.
I installed the package in my in the model project with Install-Package Microsoft.SqlServer.Types
then tried Add-Migration AddDbGeography
but I keep getting this Error Message
Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found
.
any help is welcome :)
(I have tried to uninstall/install latest version of CLR
Types for Microsoft® SQL Server but nothing work)
Let's start with basic checks. Please check if you have both x86 and x64 version of the Microsoft.SqlServer.Types assembly installed. It might be that wrong one is installed, or that both of them are installed and one of them is older than expected.