Spatial / DBGeography Property Index for Entity Framework Code First

I have the first draft of EF code (6.1), and one of its models has the DbGeography property (which will contain only POINT fields) with which I will execute queries.

I am declaring custom indexes following the official guide , however it lacks details regarding indexes for spatial members / properties, and I was wondering how can I create them through Code First?

The base database will / will be SQL Server 2012 if it plays any role.

+6
source share
1 answer

Failed to comment.

Almost the same question here .

This seems to be impossible.

+2
source

Source: https://habr.com/ru/post/974330/


All Articles