6

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.

Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79

1 Answers1

2

Could not comment.

Practically same question here.

Apparently it cannot be done.

Community
  • 1
  • 1
Quinton Smith
  • 2,550
  • 18
  • 17
  • 1
    Can the down-voter please tell me why? Otherwise I will not be able to avoid the same pitfall in the future. I merely wanted to provide a link where practically the same question was answered and the answer accepted and I did not have enough rep to just add it as a comment. – Quinton Smith Aug 01 '15 at 13:21