using (var db = new ServiceEntities())
{
var temp = db.Cities.FirstOrDefault(x=>x.Enabled);
}
System.InvalidOperationException: 'Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found. '
установил через nuget Microsoft.SqlServer.Types
в web.config
прописал
<dependentAssembly>
<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="14.0.0.0" newVersion="14.0.0.0" />
</dependentAssembly>