Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Index on Spatial / DBGeography Property for Entity Framework Code First

I have an EF (6.1) code first project and one of its model has a DbGeography Property (which will contain only POINT geographies) which I'll perform queries against.

I declare custom indices following the official guide, however it is lacking details regarding indices for spatial members / properties and I was wondering how I can create those via Code First?

The underlying Database is / will be SQL Server 2012 if that plays any role.

like image 630
Jörg Battermann Avatar asked Aug 25 '14 20:08

Jörg Battermann


1 Answers

Could not comment.

Practically same question here.

Apparently it cannot be done.

like image 127
Quinton Smith Avatar answered Nov 04 '22 00:11

Quinton Smith